menu
#3973424 Return value of mohagames\lockmystuff\Main::onCommand() must be of the type bool, none returned

Submitted by PocketMine-MP 3.11.4

General information

Version: 3.11.4
Git commit: 13f28d84
Plugin involvement: Direct
Report date: 2020-03-24 01:43:11 +0000 UTC

System Information

PHP version: 7.3.14
Operating system: linux
System banner: Linux cb94ac39045a 4.4.0-161-generic #189-Ubuntu SMP Tue Aug 27 08:10:16 UTC 2019 x86_64

Error information

Warning: the LockMyStuff plugin was directly involved in this crash. Please contact the plugin author.
Message: Return value of mohagames\lockmystuff\Main::onCommand() must be of the type bool, none returned
File: plugins/LockMyStuff.phar/src/mohagames/lockmystuff/Main
Line: #131
Error level: TypeError
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141

default:
return false;
}
}
else{
$this->getLogger()->info("Please execute this command in-game");
}

}


/**
* @param BlockPlaceEvent $event
*/
public function wirehook(BlockPlaceEvent $event){
if($event->getBlock()->getItemId() == $this->itemID){
$event->setCancelled();
}
}
#0 src/pocketmine/command/PluginCommand(58): mohagames\lockmystuff\Main->onCommand(object pocketmine\command\ConsoleCommandSender, object pocketmine\command\PluginCommand, string[4] lock, array[1])
#1 src/pocketmine/command/SimpleCommandMap(270): pocketmine\command\PluginCommand->execute(object pocketmine\command\ConsoleCommandSender, string[4] lock, array[1])
#2 src/pocketmine/Server(2065): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[6] lock 1)
#3 src/pocketmine/Server(1643): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[6] lock 1)
#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(2406): pocketmine\snooze\SleeperHandler->sleepUntil(double 1585014191.8622)
#7 src/pocketmine/Server(2250): pocketmine\Server->tickProcessor()
#8 src/pocketmine/Server(1811): pocketmine\Server->start()
#9 src/pocketmine/PocketMine(274): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /aternos/server/, string[24] /aternos/server/plugins/)
#10 src/pocketmine/PocketMine(297): pocketmine\server()
#11 (1): require(string[64] phar:///aternos/server/server.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show