menu
#2387838 Argument 1 passed to ThisCrazy\TCZombieMain::getId() must be an instance of pocketmine\entity\Entity, array given

Submitted by PocketMine-MP 3.6.4

General information

Version: 3.6.4
Git commit: af90e18b
Plugin involvement: Direct
Report date: 2019-05-15 22:13:18 +0000 UTC

System Information

PHP version: 7.2.15
Operating system: linux
System banner: Linux mcperp.ru 3.13.0-157-generic #207-Ubuntu SMP Mon Aug 20 16:44:59 UTC 2018 x86_64

Error information

Warning: the TCZombieSystem plugin was directly involved in this crash. Please contact the plugin author.
Message: Argument 1 passed to ThisCrazy\TCZombieMain::getId() must be an instance of pocketmine\entity\Entity, array given
File: plugins/TCZombieSystem by ThisCrazy/src/ThisCrazy/TCZombieMain
Line: #309
Error level: TypeError
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
    foreach ($this->entities as $id => $array) {
if ($array['type'] == $type) {
$array['object']->close();
$this->getLogger()->notice('Kicked zombie(type: ' . $this->entities[$this->getId($array['object'])]['type'] . ') with id ' . $this->getId($array['object']));
unset($this->entities[$this->getId($array['object'])]);
}
}
}

public function getId(Entity $entity) {
foreach ($this->entities as $id => $array) {
if ($array['object'] == $entity) return $id;
}
}

}
#0 plugins/TCZombieSystem by ThisCrazy/src/ThisCrazy/TCZombieTimer(28): ThisCrazy\TCZombieMain->getId(array Array())
#1 src/pocketmine/scheduler/TaskHandler(159): ThisCrazy\TCZombieTimer->onRun(integer 1)
#2 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 1)
#3 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1)
#4 src/pocketmine/Server(2587): pocketmine\plugin\PluginManager->tickSchedulers(integer 1)
#5 src/pocketmine/Server(2342): pocketmine\Server->tick()
#6 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1784): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(250): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/test_server/, string /home/test_server/plugins/)
#9 (1): require(string phar:///home/test_server/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show