what is the problem in this code? PHP: <?phpnamespace MadeUpadanaYT\ItemProfil;use pocketmine\Server;use pocketmine\item\Item;use pocketmine\item\NetherStar;use pocketmine\Player;use pocketmine\inventory\Inventory;use pocketmine\item\enchantment\Enchantment;use pocketmine\command\Command;use pocketmine\command\CommandSender;use pocketmine\event\Listener;use pocketmine\plugin\PluginBase;use onebone\economyapi\EconomyAPI;class main extends PluginBase implements Listener{public function onEnable(){ $this->getLogger()->info("Plugin Sudah Myala");}public function onDisable(){ $this->getLogger()->info("Plugin Sudah Mati");}public function onCommand(CommandSender $sender, Command $cmd, $label, array $args){if($cmd->getName() == "oo"){ if($sender instanceof Player){ $money = EconomyAPI::getInstance()->myMoney($sender); $inv = $sender->getInventory(); $i = Item::get(399,0,1); $i->setCustomName("§r§eMoney: {$money}"); $inv->addItem($i); } if($sender instanceof Player){ $player = $event->getPlayer(); $inv = $sender->getInventory(); $i = Item::get(399,0,1); $i->setCustomName("§r§bName: {$player}"); $inv->addItem($i); } return true; }}} when used will crash like this Notice: Undefined variable: event in /storage/emulated/0/Genisys/plugins/a/src/MadeUpadanaYT/ItemProfil/main.php on line 35 [02:19:00] [Server thread/CRITICAL]: Unhandled exception executing command 'oo' in oo: Call to a member function getPlayer() on unknown [02:19:00] [Server thread/CRITICAL]: Error: "Call to a member function getPlayer() on unknown" (EXCEPTION) in "/a/src/MadeUpadanaYT/ItemProfil/main" at line 35