It hasn't been a week since I started learning about plugin coding so #DontJudge #ImOnly12 #RespectNewbies This server is running PocketMine-MP 1.6.2dev+poggit.1197 「Unleashed」 implementing API version 3.0.0-ALPHA6 for Minecraft: PE v1.1.0.55 (protocol version 113) I got a "plugin skeleton" as DevTools says, by doing /genplugin Hey Hey After that, I edited the code to give me "Heyyyyyyyyy!" when I run the command /hey by this: PHP: <?phpnamespace Hey\Hey;use pocketmine\plugin\PluginBase;use pocketmine\command\CommandSender;use pocketmine\command\Command;class Main extends PluginBase{ public function onEnable(){ $this->getLogger()->info("Hey enabled!"); } public function onCommand(CommandSender $sender, Command $command, $label, array $args){ switch($command->getName()){ case "hey": $sender->sendMessage("Heyyyyyyyyyyy!"); return true; default: return false; } } public function onDisable(){ $this->getLogger()->info("Byeeeee"); }} And it gave me this: [22:01:10] [Server thread/CRITICAL]: Unhandled exception executing command 'hey' in hey: explode() expects parameter 2 to be string, boolean given [22:01:10] [Server thread/CRITICAL]: TypeError: "explode() expects parameter 2 to be string, boolean given" (EXCEPTION) in "src/pocketmine/command/Command" at line 189 What have I done wrong? (or have I?)
Wow. I can't even do /help anymore. [22:24:29] [Server thread/CRITICAL]: Unhandled exception executing command 'help' in help: explode() expects parameter 2 to be string, boolean given [22:24:29] [Server thread/CRITICAL]: TypeError: "explode() expects parameter 2 to be string, boolean given" (EXCEPTION) in "src/pocketmine/command/Command" at line 189
I think the problem was with the PocketMine-MP.phar. It started working after getting a newer one. (And adding the new api 3.0.0-ALPHA7 changes to the plugin)