DaPigGuy / PiggyCustomEnchants

An open source custom enchantment plugin for PocketMine-MP
https://piggydocs.aericio.net/PiggyCustomEnchants.html
Apache License 2.0
103 stars 118 forks source link

Error: Trying to get permissions of closed player #311

Closed teracube closed 2 years ago

teracube commented 4 years ago

Please make sure your issue complies with these guidelines:

Link to crashdump: Mon_Jul_6-18.13.08-CEST_2020.log

Extra Information

2020-07-06 [18:13:08] [Server thread/CRITICAL]: InvalidStateException: "Trying to get permissions of closed player" (EXCEPTION) in "src/pocketmine/Player" at line 682
2020-07-06 [18:13:08] [Server thread/DEBUG]: #0 src/pocketmine/level/Level(1722): pocketmine\Player->hasPermission(string[30] pocketmine.spawnprotect.bypass)
2020-07-06 [18:13:08] [Server thread/DEBUG]: #1 src/pocketmine/level/Level(1866): pocketmine\level\Level->checkSpawnProtection(object pocketmine\Player, object pocketmine\block\Farmland)
2020-07-06 [18:13:08] [Server thread/DEBUG]: #2 plugins/PiggyCustomEnchants_dev-462.phar/src/DaPigGuy/PiggyCustomEnchants/enchants/tools/hoe/FarmerEnchant(43): pocketmine\level\Level->useItemOn(object pocketmine\math\Vector3, object pocketmine\item\Potato, integer 1, object pocketmine\math\Vector3, object pocketmine\Player)
2020-07-06 [18:13:08] [Server thread/DEBUG]: #3 src/pocketmine/scheduler/ClosureTask(61): DaPigGuy\PiggyCustomEnchants\enchants\tools\hoe\FarmerEnchant->DaPigGuy\PiggyCustomEnchants\enchants\tools\hoe\{closure}(integer 2513748)
2020-07-06 [18:13:08] [Server thread/DEBUG]: #4 src/pocketmine/scheduler/TaskHandler(134): pocketmine\scheduler\ClosureTask->onRun(integer 2513748)
2020-07-06 [18:13:08] [Server thread/DEBUG]: #5 src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 2513748)
2020-07-06 [18:13:08] [Server thread/DEBUG]: #6 src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 2513748)
2020-07-06 [18:13:08] [Server thread/DEBUG]: #7 src/pocketmine/Server(2391): pocketmine\plugin\PluginManager->tickSchedulers(integer 2513748)
2020-07-06 [18:13:08] [Server thread/DEBUG]: #8 src/pocketmine/Server(2154): pocketmine\Server->tick()
2020-07-06 [18:13:08] [Server thread/DEBUG]: #9 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
2020-07-06 [18:13:08] [Server thread/DEBUG]: #10 src/pocketmine/Server(1588): pocketmine\Server->start()
2020-07-06 [18:13:08] [Server thread/DEBUG]: #11 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
2020-07-06 [18:13:08] [Server thread/DEBUG]: #12 src/pocketmine/PocketMine(304): pocketmine\server()
2020-07-06 [18:13:08] [Server thread/DEBUG]: #13 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
2020-07-06 [18:13:08] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
2020-07-06 [18:13:08] [Server thread/EMERGENCY]: Please upload the "/home/container/crashdumps/Mon_Jul_6-18.13.08-CEST_2020.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.
2020-07-06 [18:13:10] [Server thread/EMERGENCY]: The crash dump has been automatically submitted to the Crash Archive. You can view it on https://crash.pmmp.io/view/4351087 or use the ID #4351087.
2020-07-06 [18:13:10] [Server thread/INFO]: Disabling cucumber v1.6.2
Aericio commented 3 years ago

@teracube does this issue still occur?

teracube commented 3 years ago

Thanks Aericio, Sorry i can't test because I have the same issue with slapper only (without PCE) https://github.com/jojoe77777/Slapper/issues/308