menu
#5038031 Call to a member function setItem() on null

Submitted by PocketMine-MP 3.22.0

General information

Version: 3.22.0
Git commit: c32c2146
Plugin involvement: Direct
Report date: 2021-07-22 00:26:25 +0000 UTC
Server uptime: 0 days 0 hours 32 minutes 48 seconds

System Information

PHP version: 7.4.21
Operating system: linux
System banner: Linux 18ca89db-e659-4dae-98b2-3dee642572bd 5.4.0-74-generic #83-Ubuntu SMP Sat May 8 02:35:39 UTC 2021 x86_64

Error information

Warning: the SkyWarsForPE plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function setItem() on null
File: plugins/SkyWarsForPE (1).phar/src/larryTheCoder/panel/FormManager
Line: #841
Error level: Error
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
			if($cleanWorld && ($level = Server::getInstance()->getLevelByName($arena->getLevelName())) !== null){
LevelAsyncPool::getAsyncPool()->submitTask(new AsyncDirectoryDelete([$level]));
}
}

if(isset($this->lastHoldIndex[$player->getName()])){
$holdIndex = $this->lastHoldIndex[$player->getName()][0];
$lastItem = $this->lastHoldIndex[$player->getName()][1];

$player->getInventory()->setItem(0, $lastItem ?? ItemFactory::get(ItemIds::AIR));
$player->getInventory()->setHeldItemIndex($holdIndex);

unset($this->lastHoldIndex[$player->getName()]);
}

unset($this->arenaSetup[$player->getName()]);
unset($this->spawnCache[$player->getName()]);
unset($this->blockEvent[$player->getName()]);
}

#0 plugins/SkyWarsForPE (1).phar/src/larryTheCoder/panel/FormManager(816): larryTheCoder\panel\FormManager->cleanupEvent(object pocketmine\Player, boolean 1)
#1 plugins/SkyWarsForPE (1).phar/src/larryTheCoder/arena/api/task/CompressionAsyncTask(118): larryTheCoder\panel\FormManager->larryTheCoder\panel\{closure}()
#2 pmsrc/src/pocketmine/scheduler/AsyncPool(319): larryTheCoder\arena\api\task\CompressionAsyncTask->onCompletion(object pocketmine\Server)
#3 plugins/SkyWarsForPE (1).phar/src/larryTheCoder/worker/LevelAsyncPool(60): pocketmine\scheduler\AsyncPool->collectTasks()
#4 pmsrc/src/pocketmine/scheduler/ClosureTask(61): larryTheCoder\worker\LevelAsyncPool->larryTheCoder\worker\{closure}(integer 39338)
#5 pmsrc/src/pocketmine/scheduler/TaskHandler(137): pocketmine\scheduler\ClosureTask->onRun(integer 39338)
#6 pmsrc/src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 39338)
#7 pmsrc/src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 39338)
#8 pmsrc/src/pocketmine/Server(2389): pocketmine\plugin\PluginManager->tickSchedulers(integer 39338)
#9 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()
#10 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#11 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#12 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#13 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#14 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show