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

Submitted by PocketMine-MP 3.12.0

General information

Version: 3.12.0
Git commit: 77d45bf1
Plugin involvement: Direct
Report date: 2020-05-23 03:33:20 +0000 UTC

System Information

PHP version: 7.3.16
Operating system: linux
System banner: Linux 6d106197-092b-4e66-bcdb-d8b8762fcb2e 5.3.0-1018-gcp #19~18.04.1-Ubuntu SMP Tue Apr 14 12:49:45 UTC 2020 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/SWPro.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/SWPro.phar/src/SW/SW(445): SW\GameSW->checkSlots()
#1 src/pocketmine/scheduler/TaskHandler(134): SW\TaskSW->onRun(integer 173494)
#2 src/pocketmine/scheduler/TaskScheduler(176): pocketmine\scheduler\TaskHandler->run(integer 173494)
#3 src/pocketmine/plugin/PluginManager(643): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 173494)
#4 src/pocketmine/Server(2380): pocketmine\plugin\PluginManager->tickSchedulers(integer 173494)
#5 src/pocketmine/Server(2143): pocketmine\Server->tick()
#6 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1584): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#9 src/pocketmine/PocketMine(296): pocketmine\server()
#10 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show