menu
#4550622 Call to a member function getSafeSpawn() on null

Submitted by PocketMine-MP 3.15.1

General information

Version: 3.15.1
Git commit: 9f604842
Plugin involvement: Direct
Report date: 2020-09-26 22:57:37 +0000 UTC

System Information

PHP version: 7.3.7
Operating system: linux
System banner: Linux df2db6e34437 4.15.0-106-generic #107-Ubuntu SMP Thu Jun 4 11:27:52 UTC 2020 x86_64

Error information

Warning: the Dragons plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getSafeSpawn() on null
File: plugins/Dragons (1).phar/src/vixikhd/dragons/arena/Arena
Line: #152
Error level: Error
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
        if(isset($this->players[$player->getName()]))
unset($this->players[$player->getName()]);
if(isset($this->spectators[$player->getName()]))
unset($this->spectators[$player->getName()]);

$player->setHealth(20);
$player->setMaxHealth(20);
$player->setFood(20);
$player->extinguish();
$player->teleport($this->plugin->getServer()->getDefaultLevel()->getSafeSpawn());

$player->getInventory()->clearAll();
$player->getArmorInventory()->clearAll();
$player->getCursorInventory()->clearAll();

$player->setGamemode($this->plugin->getServer()->getDefaultGamemode());

ScoreboardBuilder::removeScoreBoard($player);

if($findNewGame) {
#0 plugins/Dragons (1).phar/src/vixikhd/dragons/arena/ArenaScheduler(99): vixikhd\dragons\arena\Arena->disconnectPlayer(object pocketmine\Player, boolean 1)
#1 src/pocketmine/scheduler/TaskHandler(137): vixikhd\dragons\arena\ArenaScheduler->onRun(integer 10799)
#2 src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 10799)
#3 src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 10799)
#4 src/pocketmine/Server(2391): pocketmine\plugin\PluginManager->tickSchedulers(integer 10799)
#5 src/pocketmine/Server(2154): pocketmine\Server->tick()
#6 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1588): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[15] /home/gs-40029/, string[23] /home/gs-40029/plugins/)
#9 src/pocketmine/PocketMine(304): pocketmine\server()
#10 (11): require(string[95] phar:///pro/bin/mcpe/pocketmine-stable-1.16.20/PocketMine-MP.phar/src/pocketmine)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies