menu
#2387756 Return value of YaZrHoD\Commands\Staff\StaffMode::execute() must be of the type boolean, none returned

Submitted by PocketMine-MP 3.8.2

General information

Version: 3.8.2
Git commit: 5c81da9b
Plugin involvement: Direct
Report date: 2019-05-15 21:18:13 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: linux
System banner: Linux 6eace696-9a7e-4cf7-86b5-87ded16d0ab7 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64

Error information

Warning: the Core plugin was directly involved in this crash. Please contact the plugin author.
Message: Return value of YaZrHoD\Commands\Staff\StaffMode::execute() must be of the type boolean, none returned
File: plugins/phar_Core_SjbubHHicPkuyp2.phar/src/YaZrHoD/Commands/Staff/StaffMode
Line: #56
Error level: TypeError
47
48
49
50
51
52
53
54
55
56
57
            }

if (isset($args[0])) {
switch ($args[0]) {
case "off":
$staffmode = false;
$sender->sendMessage("Vous avez quitter le mode staff!");
}
}
}
}
#0 src/pocketmine/command/SimpleCommandMap(270): YaZrHoD\Commands\Staff\StaffMode->execute(pocketmine\command\ConsoleCommandSender object, string staffmode, array Array())
#1 src/pocketmine/Server(2019): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\command\ConsoleCommandSender object, string staffmode)
#2 src/pocketmine/Server(1606): pocketmine\Server->dispatchCommand(pocketmine\command\ConsoleCommandSender object, string staffmode)
#3 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\Server->pocketmine\{closure}()
#4 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#5 src/pocketmine/Server(2337): pocketmine\snooze\SleeperHandler->sleepUntil(double 1557955093.6178)
#6 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1774): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/container/, string /home/container/plugins/)
#9 (1): require(string phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show