menu
#3759130 Return value of GM\GM::onCommand() must be of the type bool, null returned

Submitted by PocketMine-MP 3.11.1

General information

Version: 3.11.1
Git commit: 40a2211a
Plugin involvement: Direct
Report date: 2020-02-13 06:57:16 +0000 UTC

System Information

PHP version: 7.3.7
Operating system: win
System banner: Windows NT USER-PC 10.0 build 18362 (Windows 10) AMD64

Error information

Warning: the Nano_guild plugin was directly involved in this crash. Please contact the plugin author.
Message: Return value of GM\GM::onCommand() must be of the type bool, null returned
File: plugins/nano-guild.phar/src/GM/GM
Line: #44
Error level: TypeError
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
        if (isset($this->gdata)){
$this->gdata->setAll(array("max" => $this->max, "list" => $this->list, "user" => $this->ulist));
$this->gdata->save();
}
}


public function onCommand(CommandSender $p, Command $command, $label, array $args):bool //§a[Guild] §f
{
if (!$p instanceof Player) return $p->sendMessage("§c[エラー] このコマンドはゲーム内で使用してください");

$n = $p->getName();
$ndata = $this->ulist[$n];

if(isset($args[0])){

switch ($args[0]) {

case 'make':
if (isset($this->list[$n]) || !is_null($ndata["leader"]) ) return $sender->sendMessage("§a[Guild] §f既にギルドを設立、または所属しています");
#0 src/pocketmine/command/PluginCommand(58): GM\GM->onCommand(object pocketmine\command\ConsoleCommandSender, object pocketmine\command\PluginCommand, string[1] g, array[0])
#1 src/pocketmine/command/SimpleCommandMap(270): pocketmine\command\PluginCommand->execute(object pocketmine\command\ConsoleCommandSender, string[1] g, array[0])
#2 src/pocketmine/Server(2026): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[1] g)
#3 src/pocketmine/Server(1617): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[1] g)
#4 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\Server->pocketmine\{closure}()
#5 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#6 src/pocketmine/Server(2346): pocketmine\snooze\SleeperHandler->sleepUntil(double 1581577036.2134)
#7 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
#8 src/pocketmine/Server(1785): pocketmine\Server->start()
#9 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[48] C:\Users\user\Desktop\daizinawa-rudo\BREAKCRAFT\, string[56] C:\Users\user\Desktop\daizinawa-rudo\BREAKCRAFT\plugins\)
#10 src/pocketmine/PocketMine(295): pocketmine\server()
#11 (1): require(string[103] phar://C:/Users/user/Desktop/daizinawa-rudo/BREAKCRAFT/PocketMine-MP.phar/src/po)

Loaded Plugins

  • Show

Server Settings

  • Show