jasonw4331 / MyPlot

Plot and protection plugin for PocketMine-MP
https://discord.gg/Qqcpp9Q
MIT License
101 stars 90 forks source link

Price mistake #374

Closed UnEnanoMas closed 3 years ago

UnEnanoMas commented 3 years ago

Link to crashdump:

[21:10:53] [Server thread/CRITICAL]: ErrorException: "Trying to get property 'claimPrice' of non-object" (EXCEPTION) in "plugins/MyPlot_dev-673.phar/src/MyPlot/Plot" at line 62
[21:10:53] [Server thread/CRITICAL]: #0 plugins/MyPlot_dev-673.phar/src/MyPlot/Plot(62): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[49] Trying to get property 'claimPrice' of non-object, string[70] phar:///home/container/plugins/MyPlot_dev-673.phar/src/MyPlot/Plot.php, integer 62, array[12])
[21:10:53] [Server thread/CRITICAL]: #1 plugins/MyPlot_dev-673.phar/src/MyPlot/provider/SQLiteDataProvider(158): MyPlot\Plot->__construct(string[6] YASSER, integer 3, integer 10)
[21:10:53] [Server thread/CRITICAL]: #2 plugins/MyPlot_dev-673.phar/src/MyPlot/forms/subforms/ClaimForm(53): MyPlot\provider\SQLiteDataProvider->getPlot(string[6] YASSER, integer 3, integer 10)
[21:10:53] [Server thread/CRITICAL]: #3 plugins/MyPlot_dev-673.phar/src/MyPlot/libs/dktapps/pmforms/CustomForm(119): MyPlot\forms\subforms\ClaimForm->MyPlot\forms\subforms\{closure}(object pocketmine\Player, object MyPlot\libs\dktapps\pmforms\CustomFormResponse)
[21:10:53] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/Player(3630): MyPlot\libs\dktapps\pmforms\CustomForm->handleResponse(object pocketmine\Player, array[3])
[21:10:53] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(259): pocketmine\Player->onFormSubmit(integer 1, array[3])
[21:10:53] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/network/mcpe/protocol/ModalFormResponsePacket(49): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket)
[21:10:53] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[21:10:53] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket(130): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket)
[21:10:53] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[21:10:53] [Server thread/CRITICAL]: #10 pmsrc/src/pocketmine/Player(3277): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[21:10:53] [Server thread/CRITICAL]: #11 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[21:10:53] [Server thread/CRITICAL]: #12 pmsrc/vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[21] 181.114.103.107 24963, object raklib\protocol\EncapsulatedPacket, integer 0)
[21:10:53] [Server thread/CRITICAL]: #13 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
[21:10:53] [Server thread/CRITICAL]: #14 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
[21:10:53] [Server thread/CRITICAL]: #15 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
[21:10:53] [Server thread/CRITICAL]: #16 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
[21:10:53] [Server thread/CRITICAL]: #17 pmsrc/src/pocketmine/Server(2156): pocketmine\snooze\SleeperHandler->sleepUntil(double 1612645853.8447)
[21:10:53] [Server thread/CRITICAL]: #18 pmsrc/src/pocketmine/Server(1993): pocketmine\Server->tickProcessor()
[21:10:53] [Server thread/CRITICAL]: #19 pmsrc/src/pocketmine/Server(1587): pocketmine\Server->start()
[21:10:53] [Server thread/CRITICAL]: #20 pmsrc/src/pocketmine/PocketMine(286): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[21:10:53] [Server thread/CRITICAL]: #21 pmsrc/src/pocketmine/PocketMine(316): pocketmine\server()
[21:10:53] [Server thread/CRITICAL]: #22 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

I don't know how the error is reproduced

jasonw4331 commented 3 years ago

Looks like someone tried claiming a plot in a world that wasnt generated by myplot. This was already patched in the last build 677