menu
#2387559 Return value of ThisCrazy\TCZombieMain::getId() must be of the type integer or null, none returned

Submitted by PocketMine-MP 3.6.4

General information

Version: 3.6.4
Git commit: af90e18b
Plugin involvement: Direct
Report date: 2019-05-15 19:04:55 +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: Return value of ThisCrazy\TCZombieMain::getId() must be of the type integer or null, none returned
File: plugins/TCZombieSystem by ThisCrazy/src/ThisCrazy/TCZombieMain
Line: #284
Error level: TypeError
275
276
277
278
279
280
281
282
283
284
285
286
        }
}
}
}

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

}
#0 plugins/TCZombieSystem by ThisCrazy/src/ThisCrazy/TCZombieTimer(28): ThisCrazy\TCZombieMain->getId(pocketmine\entity\Zombie object)
#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