menu
#3082116 Return value of tungsten_autosell\Main::onCommand() must be of the type bool, none returned

Submitted by PocketMine-MP 3.9.7

General information

Version: 3.9.7
Git commit: 0c91d568
Plugin involvement: Direct
Report date: 2019-11-08 19:51:26 +0000 UTC

System Information

PHP version: 7.3.7
Operating system: linux
System banner: Linux 97c9ac5aa90a 4.15.0-55-generic #60-Ubuntu SMP Tue Jul 2 18:22:20 UTC 2019 x86_64

Error information

Warning: the AutoSell plugin was directly involved in this crash. Please contact the plugin author.
Message: Return value of tungsten_autosell\Main::onCommand() must be of the type bool, none returned
File: plugins/AutoSell_v0.0.2.phar/src/tungsten_autosell/Main
Line: #61
Error level: TypeError
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
           }
} else {

$sender->sendMessage(C::GRAY . "[" . C::RED . "AutoSell" . C::GRAY . "]" . C::RED . " You got no permission for this command");

}
}


}




public function onQuit(PlayerQuitEvent $e){
$a = "autosell off";
$this->getServer()->dispatchCommand($e->getPlayer(),$a);
}


#0 src/pocketmine/command/PluginCommand(58): tungsten_autosell\Main->onCommand(object pocketmine\Player, object pocketmine\command\PluginCommand, string[8] autosell, array[1])
#1 src/pocketmine/command/SimpleCommandMap(270): pocketmine\command\PluginCommand->execute(object pocketmine\Player, string[8] autosell, array[1])
#2 src/pocketmine/Server(2029): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\Player, string[12] autosell off)
#3 plugins/AutoSell_v0.0.2.phar/src/tungsten_autosell/Main(68): pocketmine\Server->dispatchCommand(object pocketmine\Player, string[12] autosell off)
#4 src/pocketmine/plugin/MethodEventExecutor(38): tungsten_autosell\Main->onQuit(object pocketmine\event\player\PlayerQuitEvent)
#5 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(object tungsten_autosell\Main, object pocketmine\event\player\PlayerQuitEvent)
#6 src/pocketmine/event/Event(97): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerQuitEvent)
#7 src/pocketmine/Player(3508): pocketmine\event\Event->call()
#8 src/pocketmine/network/mcpe/RakLibInterface(176): pocketmine\Player->close(object pocketmine\lang\TranslationContainer, string[21] Internal server error)
#9 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[19] 95.44.240.181 38059, object raklib\protocol\EncapsulatedPacket, integer 0)
#10 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
#11 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
#12 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
#13 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#14 src/pocketmine/Server(2349): pocketmine\snooze\SleeperHandler->sleepUntil(double 1573242686.3057)
#15 src/pocketmine/Server(2206): pocketmine\Server->tickProcessor()
#16 src/pocketmine/Server(1784): pocketmine\Server->start()
#17 src/pocketmine/PocketMine(278): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[15] /home/gs-41165/, string[23] /home/gs-41165/plugins/)
#18 src/pocketmine/PocketMine(300): pocketmine\server()
#19 (1): require(string[70] phar:///home/gs-41165/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show