menu
#3548574 Call to a member function getSpawnLocation() on null

Submitted by PocketMine-MP 3.11.1

General information

Version: 3.11.1
Git commit: 40a2211a
Plugin involvement: Direct
Report date: 2020-01-13 23:35:14 +0000 UTC

System Information

PHP version: 7.3.8
Operating system: linux
System banner: Linux 1b053af6d016 4.4.0-164-generic #192-Ubuntu SMP Fri Sep 13 12:02:50 UTC 2019 x86_64

Error information

Warning: the SkyWars plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getSpawnLocation() on null
File: plugins/SkyWars.phar/src/vixikhd/skywars/arena/Arena
Line: #184
Error level: Error
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
        $player->setGamemode($this->plugin->getServer()->getDefaultGamemode());

$player->setHealth(20);
$player->setFood(20);

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

$player->teleport($this->plugin->getServer()->getDefaultLevel()->getSpawnLocation());

if(!$death) {
$this->broadcastMessage("§a> Player {$player->getName()} left the game. §7[".count($this->players)."/{$this->data["slots"]}]");
}

if($quitMsg != "") {
$player->sendMessage("§a> $quitMsg");
}
}

#0 plugins/SkyWars.phar/src/vixikhd/skywars/arena/Arena(428): vixikhd\skywars\arena\Arena->disconnectPlayer(object JackMD\NameSpaceRemover\CustomPlayer)
#1 src/pocketmine/plugin/MethodEventExecutor(38): vixikhd\skywars\arena\Arena->onQuit(object pocketmine\event\player\PlayerQuitEvent)
#2 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(object vixikhd\skywars\arena\Arena, object pocketmine\event\player\PlayerQuitEvent)
#3 src/pocketmine/event/Event(95): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerQuitEvent)
#4 src/pocketmine/Player(3530): pocketmine\event\Event->call()
#5 src/pocketmine/network/mcpe/RakLibInterface(122): pocketmine\Player->close(object pocketmine\lang\TranslationContainer, string[17] client disconnect)
#6 vendor/pocketmine/raklib/src/server/ServerHandler(131): pocketmine\network\mcpe\RakLibInterface->closeSession(string[19] 181.206.82.63 50790, string[17] client disconnect)
#7 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
#8 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
#9 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
#10 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#11 src/pocketmine/Server(2346): pocketmine\snooze\SleeperHandler->sleepUntil(double 1578958514.3608)
#12 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
#13 src/pocketmine/Server(1785): pocketmine\Server->start()
#14 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /aternos/server/, string[24] /aternos/server/plugins/)
#15 src/pocketmine/PocketMine(295): pocketmine\server()
#16 (1): require(string[64] phar:///aternos/server/server.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show