PHP: <?phpnamespace patrycy04;use pocketmine\plugin\PluginBase;use pocketmine\command\CommandSender;class Main extends PluginBase{}public funtion OnLoad(){$this->getLogger()->info("Plugin ładowanie");GetLogger()->info("Plugin ładowanie"); } public function onEnable(){$this->getLogger()->info("Plugin włączony"); } public function onDisable(){$this->getLogger()->info("Plugin wyłączony"); } }}public function onCommand(CommandSender $sender,Command $cmd,$label,array $args){ if($cmd->getName() == "kitgracz"){ $sender->getInventory()->addItem(Item::get(298,0,1)); $sender->getInventory()->addItem(Item::get(299,0,1)); $sender->getInventory()->addItem(Item::get(300,0,1)); $sender->getInventory()->addItem(Item::get(301,0,1)); $sender->getInventory()->addItem(Item::get(274,0,1)); $sender->getInventory()->addItem(Item::get(297,0,64)); $sender->sendMessage("§aOtrzymałeś kit §lgracz!"); } } return true; }
Please tell us what error you are experiencing, if there are any errors on the console. Also please tell us what you want the code to do.