menu
#2907508 Call to a member function getEntities() on null

Submitted by PocketMine-MP 3.9.5

General information

Version: 3.9.5
Git commit: f0539f48
Plugin involvement: Direct
Report date: 2019-10-10 00:37:04 +0000 UTC

System Information

PHP version: 7.3.8
Operating system: linux
System banner: Linux welles_lx_vm 4.15.0-65-generic #74-Ubuntu SMP Tue Sep 17 17:06:04 UTC 2019 x86_64

Error information

Warning: the PureEntitiesX plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getEntities() on null
File: plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/task/delayed/ShowMobEquipmentTask
Line: #67
Error level: Error
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74

/**
* Executed when delayed task's time is over.
*
* This method sends the equipment of all equipped entities to the joined player.
*
* @param $currentTick
*/
public function onRun(int $currentTick){
foreach($this->playerJoined->getLevel()->getEntities() as $entity){
if($entity->isAlive() and !$entity->isClosed() and $entity instanceof IntfCanEquip and $entity instanceof WalkingMonster){
$entity->getMobEquipment()->sendEquipmentUpdate($this->playerJoined);
}
}
}

}
#0 src/pocketmine/scheduler/TaskHandler(159): revivalpmmp\pureentities\task\delayed\ShowMobEquipmentTask->onRun(integer 832432)
#1 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 832432)
#2 src/pocketmine/plugin/PluginManager(681): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 832432)
#3 src/pocketmine/Server(2570): pocketmine\plugin\PluginManager->tickSchedulers(integer 832432)
#4 src/pocketmine/Server(2346): pocketmine\Server->tick()
#5 src/pocketmine/Server(2206): pocketmine\Server->tickProcessor()
#6 src/pocketmine/Server(1784): pocketmine\Server->start()
#7 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[25] /home/adam/PocketMine-MP/, string[33] /home/adam/PocketMine-MP/plugins/)
#8 src/pocketmine/PocketMine(299): pocketmine\server()
#9 (1): require(string[80] phar:///home/adam/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show