自分が初めて作成したプラグインで、自分の力のみでは解決できないエラーが出てしまいました…
エラー文
デバック文
エラー文
Code:
TypeError: "Return value of WorldManager\Main::onCommand() must be of the type boolean, none returned" (EXCEPTION) in "WorldManager-v1.0.0.phar/src/WorldManager/Main" at line 179
Code:
#0 src/pocketmine/command/PluginCommand(58): WorldManager\Main->onCommand(pocketmine\command\ConsoleCommandSender object, pocketmine\command\PluginCommand object, string cflat, array Array())
#1 src/pocketmine/command/SimpleCommandMap(256): pocketmine\command\PluginCommand->execute(pocketmine\command\ConsoleCommandSender object, string cflat, array Array())
#2 src/pocketmine/Server(1960): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\command\ConsoleCommandSender object, string cflat)
#3 src/pocketmine/Server(1547): pocketmine\Server->dispatchCommand(pocketmine\command\ConsoleCommandSender object, string cflat)
#4 vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\Server->pocketmine\{closure}()
#5 vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#6 src/pocketmine/Server(2278): pocketmine\snooze\SleeperHandler->sleepUntil(double 1545899231.852)
#7 src/pocketmine/Server(2139): pocketmine\Server->tickProcessor()
#8 src/pocketmine/Server(1715): pocketmine\Server->start()
#9 src/pocketmine/PocketMine(249): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /storage/emulated/0/PocketMine-MP/, string /storage/emulated/0/PocketMine-MP/plugins/)
#10 /storage/emulated/0/PocketMine-MP/PocketMine-MP.phar(1): require(string phar:///storage/emulated/0/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php)