menu
#2824746 Call to a member function clearAll() on null

Submitted by PocketMine-MP 3.9.4

General information

Version: 3.9.4
Git commit: 1be6783c
Plugin involvement: Direct
Report date: 2019-09-11 13:57:38 +0000 UTC

System Information

PHP version: 7.3.6
Operating system: linux
System banner: Linux 74dd52311c77 4.9.177-xxxx-std-ipv6-64 #721950 SMP Fri May 17 08:31:25 UTC 2019 x86_64

Error information

Warning: the SW plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function clearAll() on null
File: plugins/SW_1.3.3_by_SharpyKurth.phar/src/SW/SW
Line: #615
Error level: Error
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
			}
}
return null;
}

public function checkSlots() {
foreach ($this->getSlots() as $slot => $player) {
if (!is_null($player)) {
if (!$this->inGame($player)) {
$player->getInventory()->clearAll();
$player->getArmorInventory()->clearAll();
$player->setGameMode(0);
$player->setHealth(20);
$player->removeAllEffects();
$this->playerslot[$slot] = null;
}
}
}
}

#0 plugins/SW_1.3.3_by_SharpyKurth.phar/src/SW/SW(445): SW\GameSW->checkSlots()
#1 src/pocketmine/scheduler/TaskHandler(159): SW\TaskSW->onRun(integer 1072373)
#2 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 1072373)
#3 src/pocketmine/plugin/PluginManager(681): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1072373)
#4 src/pocketmine/Server(2569): pocketmine\plugin\PluginManager->tickSchedulers(integer 1072373)
#5 src/pocketmine/Server(2345): pocketmine\Server->tick()
#6 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1784): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[47] /home/minecraft/multicraft/servers/server72268/, string[55] /home/minecraft/multicraft/servers/server72268/plugins/)
#9 src/pocketmine/PocketMine(299): pocketmine\server()
#10 (1): require(string[107] phar:///home/minecraft/multicraft/servers/server72268/PMMP-Latest-Stable.phar/sr)

Loaded Plugins

  • Show

Server Settings

  • Show