genboy / Festival

Custom events plugin for Pocketmine
https://genboy.net/minecraft/festival/
Other
39 stars 15 forks source link

Crash when editing world from /FE MENU #303

Closed benda95280 closed 3 years ago

benda95280 commented 3 years ago

[20:30:40] [Server thread/CRITICAL]: TypeError: "Argument 3 passed to xenialdan\customui\CustomForm::addDropdown() must be of the type int or null, bool given, called in phar://C:/Users/Benjamin/Documents/PMMP-Rapto/plugins/Festival_dev-121.phar/src/genboy/Festival/FormUI.php on line 985" (EXCEPTION) in "plugins/Festival_dev-121.phar/src/xenialdan/customui/CustomForm" at line 110 [20:30:40] [Server thread/CRITICAL]: #0 plugins/Festival_dev-121.phar/src/genboy/Festival/FormUI(985): xenialdan\customui\CustomForm->addDropdown(string[21] S..lection d'un monde, array[11], boolean , string[13] selectedLevel) [20:30:40] [Server thread/CRITICAL]: #1 plugins/Festival_dev-121.phar/src/genboy/Festival/FormUI(75): genboy\Festival\FormUI->levelForm(object pocketmine\Player) [20:30:40] [Server thread/CRITICAL]: #2 plugins/Festival_dev-121.phar/src/xenialdan/customui/Form(48): genboy\Festival\FormUI->genboy\Festival{closure}(object pocketmine\Player, integer 3) [20:30:40] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/Player(3664): xenialdan\customui\Form->handleResponse(object pocketmine\Player, integer 3) [20:30:40] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(259): pocketmine\Player->onFormSubmit(integer 17, integer 3) [20:30:40] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/network/mcpe/protocol/ModalFormResponsePacket(49): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket) [20:30:40] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [20:30:40] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket(130): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket) [20:30:40] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [20:30:40] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/Player(3311): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [20:30:40] [Server thread/CRITICAL]: #10 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [20:30:40] [Server thread/CRITICAL]: #11 pmsrc/vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[15] 127.0.0.1 60951, object raklib\protocol\EncapsulatedPacket, integer 0) [20:30:40] [Server thread/CRITICAL]: #12 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket() [20:30:40] [Server thread/CRITICAL]: #13 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process() [20:30:40] [Server thread/CRITICAL]: #14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}() [20:30:40] [Server thread/CRITICAL]: #15 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications() [20:30:40] [Server thread/CRITICAL]: #16 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1619292640.0551) [20:30:40] [Server thread/CRITICAL]: #17 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor() [20:30:40] [Server thread/CRITICAL]: #18 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start() [20:30:40] [Server thread/CRITICAL]: #19 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[39] C:\Users\Benjamin\Documents\PMMP-Rapto\, string[47] C:\Users\Benjamin\Documents\PMMP-Rapto\plugins) [20:30:40] [Server thread/CRITICAL]: #20 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server() [20:30:40] [Server thread/CRITICAL]: #21 pmsrc(11): require(string[94] phar://C:/Users/Benjamin/Documents/PMMP-Rapto/PocketMine-MP.phar/src/pocketmine/)

Thanks,

genboy commented 3 years ago

@benda95280 Thank you for the full error report, i will check and respond in next couple of days, sorry for late repsonse.

genboy commented 3 years ago

Heei @benda9528, did the latest Festival_dev-122 solve this problem, so i can close this issue?

benda95280 commented 3 years ago

Woops, forgot to try, will see and let you know

genboy commented 3 years ago

OK, u can open this up again if it does not do what you want

benda95280 commented 3 years ago

Yep, it's fine, sorry for the delay :D