CortexPE / TeaSpoon

☕ A PLUGIN to Extend PMMP's Functionality without completely changing it.
GNU Affero General Public License v3.0
144 stars 100 forks source link

Return value of pocketmine\entity\Entity::getId() must be of the type integer, null returned" (EXCEPTION) in "src/pocketmine/entity/Entity" at line 1887 #196

Closed teracube closed 6 years ago

teracube commented 6 years ago

Issue Description

Return value of pocketmine\entity\Entity::getId() must be of the type integer, null returned" (EXCEPTION) in "src/pocketmine/entity/Entity" at line 1887

Steps to Reproduce

  1. ...running PocketMine-MP version 1.7dev-711 "[REDACTED]" (API 3.0.0-ALPHA11)
  2. ...running TeaSpoon dev-144
  3. ... sorryi don't know how reproduce this issue

Crashdump, Backtrace or Other Files

# Paste your crashdump here (if theres any)

```2018-02-13 [00:22:42] [Server thread/CRITICAL]: Could not pass event 'pocketmine\event\player\PlayerKickEvent' to 'TeaSpoon v1.0.0': Return value of pocketmine\entity\Entity::getId() must be of the type integer, null returned on CortexPE\EventListener
2018-02-13 [00:22:42] [Server thread/CRITICAL]: TypeError: "Return value of pocketmine\entity\Entity::getId() must be of the type integer, null returned" (EXCEPTION) in "src/pocketmine/entity/Entity" at line 1887
2018-02-13 [00:22:42] [Server thread/DEBUG]: #0 TeaSpoon_dev-144.phar/src/CortexPE/EventListener(248): pocketmine\entity\Entity->getId()
2018-02-13 [00:22:42] [Server thread/DEBUG]: #1 src/pocketmine/plugin/MethodEventExecutor(38): CortexPE\EventListener->onKick(pocketmine\event\player\PlayerKickEvent object)
2018-02-13 [00:22:42] [Server thread/DEBUG]: #2 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(CortexPE\EventListener object, pocketmine\event\player\PlayerKickEvent object)
2018-02-13 [00:22:42] [Server thread/DEBUG]: #3 src/pocketmine/plugin/PluginManager(683): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\player\PlayerKickEvent object)
2018-02-13 [00:22:42] [Server thread/DEBUG]: #4 src/pocketmine/Player(3085): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\player\PlayerKickEvent object)
2018-02-13 [00:22:42] [Server thread/DEBUG]: #5 src/pocketmine/Player(1899): pocketmine\Player->kick(string logged in from another location)
2018-02-13 [00:22:42] [Server thread/DEBUG]: #6 src/pocketmine/Player(1893): pocketmine\Player->processLogin()
2018-02-13 [00:22:42] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/VerifyLoginTask(151): pocketmine\Player->onVerifyCompleted(pocketmine\network\mcpe\protocol\LoginPacket object, NULL , boolean 1)
2018-02-13 [00:22:42] [Server thread/DEBUG]: #8 src/pocketmine/scheduler/AsyncPool(162): pocketmine\network\mcpe\VerifyLoginTask->onCompletion(pocketmine\Server object)
2018-02-13 [00:22:42] [Server thread/DEBUG]: #9 src/pocketmine/scheduler/ServerScheduler(342): pocketmine\scheduler\AsyncPool->collectTasks()
2018-02-13 [00:22:42] [Server thread/DEBUG]: #10 src/pocketmine/Server(2543): pocketmine\scheduler\ServerScheduler->mainThreadHeartbeat(integer 670409)
2018-02-13 [00:22:42] [Server thread/DEBUG]: #11 src/pocketmine/Server(2285): pocketmine\Server->tick()
2018-02-13 [00:22:42] [Server thread/DEBUG]: #12 src/pocketmine/Server(2158): pocketmine\Server->tickProcessor()
2018-02-13 [00:22:42] [Server thread/DEBUG]: #13 src/pocketmine/Server(1744): pocketmine\Server->start()
2018-02-13 [00:22:42] [Server thread/DEBUG]: #14 src/pocketmine/PocketMine(385): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/gsp_1485/g3.hmserv.eu-19144/, string /home/gsp_1485/g3.hmserv.eu-19144/plugins/)
2018-02-13 [00:22:42] [Server thread/DEBUG]: #15 /home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar(1): require(string phar:///home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

# Paste the contents of your TeaSpoonDump here ( by running /bugreport ) [can be found at <TeaSpoon Plugin Folder>/dumps/<time>```