menu
#3741918 Call to a member function generateScoreboard() on null

Submitted by PocketMine-MP 3.11.4

General information

Version: 3.11.4
Git commit: 13f28d84
Plugin involvement: Direct
Report date: 2020-02-11 14:45:27 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: linux
System banner: Linux 30e2f226-7437-406d-9b9e-f3f04ef5eca5 4.15.0-51-generic #55-Ubuntu SMP Wed May 15 14:27:21 UTC 2019 x86_64

Error information

Warning: the CoreAPI plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function generateScoreboard() on null
File: plugins/CoreAPI_v2.3-alpha.phar/src/CoreAPI/handler/basic/GameHandler
Line: #137
Error level: Error
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
        if($player->getGamemode() !== Player::CREATIVE) $player->getInventory()->setItemInHand(Item::get((Item::AIR)));
break;
//todo: tap soup
}
}

public static function generateScoreboard(Session $session): array{
$game = $session->getGame();

return [" §l§e × §eFallen§6FFA קr", $game->generateScoreboard($session)];
}

public static function validateSession(Session $session): bool{
$game = $session->getGame();

if(!($game instanceof BaseGame)){
Logger::debug("{$session->getUsername()} caught fire! Target is handled by the GameHandler but has no game.");
HandlerManager::setHandler($session, HandlerManager::getDefaultHandler());
return false;
}
#0 plugins/CoreAPI_v2.3-alpha.phar/src/CoreAPI/handler/BasicHandler(105): CoreAPI\handler\basic\GameHandler::generateScoreboard(object CoreAPI\session\Session)
#1 plugins/CoreAPI_v2.3-alpha.phar/src/CoreAPI/handler/basic/GameHandler(45): CoreAPI\handler\BasicHandler->processScoreboard(object CoreAPI\session\Session)
#2 plugins/CoreAPI_v2.3-alpha.phar/src/CoreAPI/handler/HandlerInterface(285): CoreAPI\handler\basic\GameHandler->onSessionTick(object CoreAPI\session\Session)
#3 plugins/CoreAPI_v2.3-alpha.phar/src/CoreAPI/Core(139): CoreAPI\handler\HandlerInterface::tickSession(object CoreAPI\session\Session)
#4 src/pocketmine/scheduler/TaskHandler(169): CoreAPI\Core->onRun(integer 6823)
#5 src/pocketmine/scheduler/TaskScheduler(206): pocketmine\scheduler\TaskHandler->run(integer 6823)
#6 src/pocketmine/plugin/PluginManager(703): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 6823)
#7 src/pocketmine/Server(2670): pocketmine\plugin\PluginManager->tickSchedulers(integer 6823)
#8 src/pocketmine/Server(2403): pocketmine\Server->tick()
#9 src/pocketmine/Server(2250): pocketmine\Server->tickProcessor()
#10 src/pocketmine/Server(1811): pocketmine\Server->start()
#11 src/pocketmine/PocketMine(274): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#12 src/pocketmine/PocketMine(297): pocketmine\server()
#13 (1): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show