brokiem/SimplePets

Stairseat crash

MrBlasyMSK opened this issue · 0 comments

Describe the bug
If a player sits on a chair, it gives an internal server error to the player

To Reproduce
Steps to reproduce the behavior:

  1. Sit in any stair
  2. See internal server error

Expected behavior
That it did not make any internal server error

Screenshots
If applicable, add screenshots to help explain your problem.

SimplePets plugin information

  • Version: 1.0.1-beta
  • Server api: I don't know, it's the latest version of pocketmine and I have php 7.4

Additional context

[20:27:49] [Server thread/CRITICAL]: ErrorException: "Undefined index: MrBlasyMSK" (EXCEPTION) in "plugins/SimplePets_dev-79.phar/src/brokiem/simplepets/manager/PetManager" at line 296
[20:27:49] [Server thread/CRITICAL]: #0 plugins/SimplePets_dev-79.phar/src/brokiem/simplepets/manager/PetManager(296): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[27] Undefined index: MrBlasyMSK, string[99] phar:///home/container/plugins/SimplePets_dev-79.phar/src/brokiem/simplepets/man, integer 296, array[1])
[20:27:49] [Server thread/CRITICAL]: #1 plugins/SimplePets_dev-79.phar/src/brokiem/simplepets/EventListener(71): brokiem\simplepets\manager\PetManager->getRiddenPet(object JackMD\NameSpaceRemover\CustomPlayer)
[20:27:49] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): brokiem\simplepets\EventListener->onDataPacket(object pocketmine\event\server\DataPacketReceiveEvent)
[20:27:49] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object brokiem\simplepets\EventListener, object pocketmine\event\server\DataPacketReceiveEvent)
[20:27:49] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\server\DataPacketReceiveEvent)
[20:27:49] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(108): pocketmine\event\Event->call()
[20:27:49] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket(130): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\PlayerInputPacket)
[20:27:49] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[20:27:49] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/Player(3321): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[20:27:49] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[20:27:49] [Server thread/CRITICAL]: #10 pmsrc/vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[16] xx.xx.xx.xxx, object raklib\protocol\EncapsulatedPacket, integer 0)
[20:27:49] [Server thread/CRITICAL]: #11 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
[20:27:49] [Server thread/CRITICAL]: #12 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
[20:27:49] [Server thread/CRITICAL]: #13 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
[20:27:49] [Server thread/CRITICAL]: #14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
[20:27:49] [Server thread/CRITICAL]: #15 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1628713669.1276)
[20:27:49] [Server thread/CRITICAL]: #16 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
[20:27:49] [Server thread/CRITICAL]: #17 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
[20:27:49] [Server thread/CRITICAL]: #18 pmsrc/src/pocketmine/PocketMine(311): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[20:27:49] [Server thread/CRITICAL]: #19 pmsrc/src/pocketmine/PocketMine(341): pocketmine\server()
[20:27:49] [Server thread/CRITICAL]: #20 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)