Closed AlexPads closed 5 years ago
Server thread/CRITICAL Could not pass event 'pocketmine\event\entity\EntityTeleportEvent' to 'TeaSpoon v1.0.1': Argument 1 passed to CortexPE\Utils::getDimension() must be an instance of pocketmine\level\Level, null given, called in phar:///plugins/TeaSpoon_dev-255.phar/src/CortexPE/EventListener.php on line 365 on CortexPE\EventListener 30.10 23:56:51 [Server] Server thread/CRITICAL TypeError: "Argument 1 passed to CortexPE\Utils::getDimension() must be an instance of pocketmine\level\Level, null given, called in phar:///plugins/TeaSpoon_dev-255.phar/src/CortexPE/EventListener.php on line 365" (EXCEPTION) in "TeaSpoon_dev-255.phar/src/CortexPE/Utils" at line 154 30.10 23:56:51 [Server] Server thread/DEBUG #0 TeaSpoon_dev-255.phar/src/CortexPE/EventListener(365): CortexPE\Utils::getDimension(NULL ) 30.10 23:56:51 [Server] Server thread/DEBUG #1 src/pocketmine/plugin/MethodEventExecutor(38): CortexPE\EventListener->onTeleport(pocketmine\event\entity\EntityTeleportEvent object) 30.10 23:56:51 [Server] Server thread/DEBUG #2 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(CortexPE\EventListener object, pocketmine\event\entity\EntityTeleportEvent object) 30.10 23:56:51 [Server] Server thread/DEBUG #3 src/pocketmine/plugin/PluginManager(703): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\entity\EntityTeleportEvent object) 30.10 23:56:51 [Server] Server thread/DEBUG #4 src/pocketmine/entity/Entity(1877): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\entity\EntityTeleportEvent object) 30.10 23:56:51 [Server] Server thread/DEBUG #5 src/pocketmine/Player(3705): pocketmine\entity\Entity->teleport(pocketmine\level\Position object, double 109.452148, double 5.549759) 30.10 23:56:51 [Server] Server thread/DEBUG #6 MSpawns (1).phar/src/MSpawns/MSpawns(329): pocketmine\Player->teleport(pocketmine\level\Position object, double 109.452148, double 5.549759) 30.10 23:56:51 [Server] Server thread/DEBUG #7 MSpawns (1).phar/src/MSpawns/EventListener(71): MSpawns\MSpawns->teleportToHub(pocketmine\Player object) 30.10 23:56:51 [Server] Server thread/DEBUG #8 src/pocketmine/plugin/MethodEventExecutor(38): MSpawns\EventListener->onPlayerJoin(pocketmine\event\player\PlayerJoinEvent object) 30.10 23:56:51 [Server] Server thread/DEBUG #9 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(MSpawns\EventListener object, pocketmine\event\player\PlayerJoinEvent object) 30.10 23:56:51 [Server] Server thread/DEBUG #10 src/pocketmine/plugin/PluginManager(703): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\player\PlayerJoinEvent object) 30.10 23:56:51 [Server] Server thread/DEBUG #11 src/pocketmine/Player(1037): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\player\PlayerJoinEvent object) 30.10 23:56:51 [Server] Server thread/DEBUG #12 src/pocketmine/Player(985): pocketmine\Player->doFirstSpawn() 30.10 23:56:51 [Server] Server thread/DEBUG #13 src/pocketmine/level/Level(2464): pocketmine\Player->sendChunk(integer -116, integer -68, pocketmine\network\mcpe\protocol\BatchPacket object) 30.10 23:56:51 [Server] Server thread/DEBUG #14 src/pocketmine/level/Level(2516): pocketmine\level\Level->sendChunkFromCache(integer -116, integer -68) 30.10 23:56:51 [Server] Server thread/DEBUG #15 src/pocketmine/level/format/io/ChunkRequestTask(88): pocketmine\level\Level->chunkRequestCallback(integer -116, integer -68, pocketmine\network\mcpe\protocol\BatchPacket object) 30.10 23:56:51 [Server] Server thread/DEBUG #16 src/pocketmine/scheduler/AsyncPool(306): pocketmine\level\format\io\ChunkRequestTask->onCompletion(pocketmine\Server object) 30.10 23:56:51 [Server] Server thread/DEBUG #17 src/pocketmine/Server(2516): pocketmine\scheduler\AsyncPool->collectTasks() 30.10 23:56:51 [Server] Server thread/DEBUG #18 src/pocketmine/Server(2265): pocketmine\Server->tick() 30.10 23:56:51 [Server] Server thread/DEBUG #19 src/pocketmine/Server(2135): pocketmine\Server->tickProcessor() 30.10 23:56:51 [Server] Server thread/DEBUG #20 src/pocketmine/Server(1701): pocketmine\Server->start() 30.10 23:56:51 [Server] Server thread/DEBUG #21 src/pocketmine/PocketMine(249): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /, string /plugins/) 30.10 23:56:51 [Server] Server thread/DEBUG #22 /custom.phar(1): require(string phar:///custom.phar/src/pocketmine/PocketMine.php)
Whenever a Player does /tp or anything like /tp the server throws this error and sometimes crashes!
thanks I haven't had the issue since the fix!
Server thread/CRITICAL Could not pass event 'pocketmine\event\entity\EntityTeleportEvent' to 'TeaSpoon v1.0.1': Argument 1 passed to CortexPE\Utils::getDimension() must be an instance of pocketmine\level\Level, null given, called in phar:///plugins/TeaSpoon_dev-255.phar/src/CortexPE/EventListener.php on line 365 on CortexPE\EventListener 30.10 23:56:51 [Server] Server thread/CRITICAL TypeError: "Argument 1 passed to CortexPE\Utils::getDimension() must be an instance of pocketmine\level\Level, null given, called in phar:///plugins/TeaSpoon_dev-255.phar/src/CortexPE/EventListener.php on line 365" (EXCEPTION) in "TeaSpoon_dev-255.phar/src/CortexPE/Utils" at line 154 30.10 23:56:51 [Server] Server thread/DEBUG #0 TeaSpoon_dev-255.phar/src/CortexPE/EventListener(365): CortexPE\Utils::getDimension(NULL ) 30.10 23:56:51 [Server] Server thread/DEBUG #1 src/pocketmine/plugin/MethodEventExecutor(38): CortexPE\EventListener->onTeleport(pocketmine\event\entity\EntityTeleportEvent object) 30.10 23:56:51 [Server] Server thread/DEBUG #2 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(CortexPE\EventListener object, pocketmine\event\entity\EntityTeleportEvent object) 30.10 23:56:51 [Server] Server thread/DEBUG #3 src/pocketmine/plugin/PluginManager(703): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\entity\EntityTeleportEvent object) 30.10 23:56:51 [Server] Server thread/DEBUG #4 src/pocketmine/entity/Entity(1877): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\entity\EntityTeleportEvent object) 30.10 23:56:51 [Server] Server thread/DEBUG #5 src/pocketmine/Player(3705): pocketmine\entity\Entity->teleport(pocketmine\level\Position object, double 109.452148, double 5.549759) 30.10 23:56:51 [Server] Server thread/DEBUG #6 MSpawns (1).phar/src/MSpawns/MSpawns(329): pocketmine\Player->teleport(pocketmine\level\Position object, double 109.452148, double 5.549759) 30.10 23:56:51 [Server] Server thread/DEBUG #7 MSpawns (1).phar/src/MSpawns/EventListener(71): MSpawns\MSpawns->teleportToHub(pocketmine\Player object) 30.10 23:56:51 [Server] Server thread/DEBUG #8 src/pocketmine/plugin/MethodEventExecutor(38): MSpawns\EventListener->onPlayerJoin(pocketmine\event\player\PlayerJoinEvent object) 30.10 23:56:51 [Server] Server thread/DEBUG #9 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(MSpawns\EventListener object, pocketmine\event\player\PlayerJoinEvent object) 30.10 23:56:51 [Server] Server thread/DEBUG #10 src/pocketmine/plugin/PluginManager(703): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\player\PlayerJoinEvent object) 30.10 23:56:51 [Server] Server thread/DEBUG #11 src/pocketmine/Player(1037): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\player\PlayerJoinEvent object) 30.10 23:56:51 [Server] Server thread/DEBUG #12 src/pocketmine/Player(985): pocketmine\Player->doFirstSpawn() 30.10 23:56:51 [Server] Server thread/DEBUG #13 src/pocketmine/level/Level(2464): pocketmine\Player->sendChunk(integer -116, integer -68, pocketmine\network\mcpe\protocol\BatchPacket object) 30.10 23:56:51 [Server] Server thread/DEBUG #14 src/pocketmine/level/Level(2516): pocketmine\level\Level->sendChunkFromCache(integer -116, integer -68) 30.10 23:56:51 [Server] Server thread/DEBUG #15 src/pocketmine/level/format/io/ChunkRequestTask(88): pocketmine\level\Level->chunkRequestCallback(integer -116, integer -68, pocketmine\network\mcpe\protocol\BatchPacket object) 30.10 23:56:51 [Server] Server thread/DEBUG #16 src/pocketmine/scheduler/AsyncPool(306): pocketmine\level\format\io\ChunkRequestTask->onCompletion(pocketmine\Server object) 30.10 23:56:51 [Server] Server thread/DEBUG #17 src/pocketmine/Server(2516): pocketmine\scheduler\AsyncPool->collectTasks() 30.10 23:56:51 [Server] Server thread/DEBUG #18 src/pocketmine/Server(2265): pocketmine\Server->tick() 30.10 23:56:51 [Server] Server thread/DEBUG #19 src/pocketmine/Server(2135): pocketmine\Server->tickProcessor() 30.10 23:56:51 [Server] Server thread/DEBUG #20 src/pocketmine/Server(1701): pocketmine\Server->start() 30.10 23:56:51 [Server] Server thread/DEBUG #21 src/pocketmine/PocketMine(249): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /, string /plugins/) 30.10 23:56:51 [Server] Server thread/DEBUG #22 /custom.phar(1): require(string phar:///custom.phar/src/pocketmine/PocketMine.php)
Whenever a Player does /tp or anything like /tp the server throws this error and sometimes crashes!