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

Submitted by PocketMine-MP 3.9.6+dev.1777

General information

Version: 3.9.6+dev.1777
Git commit: 247875e3
Plugin involvement: Direct
Report date: 2019-10-10 03:07:12 +0000 UTC

System Information

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

Error information

Warning: the Core plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getSafeSpawn() on null
File: plugins/Core PO.phar/src/Playek/Core/CoreEvent
Line: #115
Error level: Error
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
		$sender->getInventory()->clearAll();
$sender->getArmorInventory()->clearAll();
$sender->setMaxHealth(20);
$sender->setHealth(20);
$sender->setFood(20);
$sender->removeAllEffects();
$sender->getAllowFlight(false);
$sender->isFlying(false);
$sender->setGamemode(Player::SURVIVAL);
$sender->teleport(Server::getInstance()->getLevelByName($this->main->utils->getNameLobby())->getSafeSpawn(),0,0);
/*$sender->teleport($this->main->utils->getVectorLobby());*/
foreach(Server::getInstance()->getOnlinePlayers() as $player){
$msg1 = $this->main->langManager()->getTraduction("quit-message", $player->getName());
$player->sendMessage(T::GRAY."» ".T::DARK_GRAY."[".T::RED."-".T::DARK_GRAY."] ".T::YELLOW.$name.T::GRAY." ".$msg1);
}
$pp = $this->main->getPPlayer($sender->getName());
if($pp instanceof PPlayer){
$pp->setOnline(false);
}
$this->main->rank()->resetPermissions($sender);
#0 src/pocketmine/plugin/MethodEventExecutor(38): Playek\Core\CoreEvent->onQuit(object pocketmine\event\player\PlayerQuitEvent)
#1 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(object Playek\Core\CoreEvent, object pocketmine\event\player\PlayerQuitEvent)
#2 src/pocketmine/event/Event(99): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerQuitEvent)
#3 src/pocketmine/Player(3508): pocketmine\event\Event->call()
#4 src/pocketmine/network/mcpe/RakLibInterface(176): pocketmine\Player->close(object pocketmine\lang\TranslationContainer, string[21] Internal server error)
#5 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[21] 189.188.134.123 48294, object raklib\protocol\EncapsulatedPacket, integer 0)
#6 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
#7 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
#8 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
#9 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#10 src/pocketmine/Server(2349): pocketmine\snooze\SleeperHandler->sleepUntil(double 1570676833.0158)
#11 src/pocketmine/Server(2206): pocketmine\Server->tickProcessor()
#12 src/pocketmine/Server(1784): pocketmine\Server->start()
#13 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[43] /home/minecraft/multicraft/servers/server1/, string[51] /home/minecraft/multicraft/servers/server1/plugins/)
#14 src/pocketmine/PocketMine(299): pocketmine\server()
#15 (1): require(string[88] phar:///home/minecraft/multicraft/jar/Pocketmine-1.12.phar/src/pocketmine/Pocket)

Loaded Plugins

  • Show

Server Settings

  • Show