genboy / Festival

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

FE Areas not saving/deleting on restart. #232

Closed itzfrozt closed 5 years ago

itzfrozt commented 5 years ago

whenever i go to restart my server, the Festival Areas keep deleting automatically. I don't configure anything but i save the server, stop it, start it back up and the area is no longer there.

itzfrozt commented 5 years ago

and unable to use certain menu items : error:

[05:25:09] [Server thread/CRITICAL]: TypeError: "Argument 3 passed to xenialdan\customui\CustomForm::addDropdown() must be of the type integer or null, boolean given, called in F:\Users\vital\Desktop\loltest2\plugins\Festival-master\src\genboy\Festival\FormUI.php on line 931" (EXCEPTION) in "plugins/Festival-master/src/xenialdan/customui/CustomForm" at line 110 [05:25:09] [Server thread/DEBUG]: #0 plugins/Festival-master/src/genboy/Festival/FormUI(931): xenialdan\customui\CustomForm->addDropdown(string[12] Level select, array[1], boolean , string[13] selectedLevel) [05:25:09] [Server thread/DEBUG]: #1 plugins/Festival-master/src/genboy/Festival/FormUI(72): genboy\Festival\FormUI->levelForm(object pocketmine\Player) [05:25:09] [Server thread/DEBUG]: #2 plugins/Festival-master/src/xenialdan/customui/Form(48): genboy\Festival\FormUI->genboy\Festival{closure}(object pocketmine\Player, integer 3) [05:25:09] [Server thread/DEBUG]: #3 src/pocketmine/Player(3462): xenialdan\customui\Form->handleResponse(object pocketmine\Player, integer 3) [05:25:09] [Server thread/DEBUG]: #4 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(260): pocketmine\Player->onFormSubmit(integer 0, integer 3) [05:25:09] [Server thread/DEBUG]: #5 src/pocketmine/network/mcpe/protocol/ModalFormResponsePacket(49): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket) [05:25:09] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [05:25:09] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/protocol/BatchPacket(123): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket) [05:25:09] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [05:25:09] [Server thread/DEBUG]: #9 src/pocketmine/Player(3126): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [05:25:09] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [05:25:09] [Server thread/DEBUG]: #11 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[17] 68.44.7.187 58073, object raklib\protocol\EncapsulatedPacket, integer 0) [05:25:09] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket() [05:25:09] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process() [05:25:09] [Server thread/DEBUG]: #14 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}() [05:25:09] [Server thread/DEBUG]: #15 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications() [05:25:09] [Server thread/DEBUG]: #16 src/pocketmine/Server(2348): pocketmine\snooze\SleeperHandler->sleepUntil(double 1567247109.1454) [05:25:09] [Server thread/DEBUG]: #17 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor() [05:25:09] [Server thread/DEBUG]: #18 src/pocketmine/Server(1784): pocketmine\Server->start() [05:25:09] [Server thread/DEBUG]: #19 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[32] F:\Users\vital\Desktop\loltest2\, string[40] F:\Users\vital\Desktop\loltest2\plugins) [05:25:09] [Server thread/DEBUG]: #20 src/pocketmine/PocketMine(299): pocketmine\server()

itzfrozt commented 5 years ago

Figured it out. I renamed a world from "spawn2" to "world" making it the original world. it was still loading into the server as "spawn2" instead of "world" so every time i went into the menu, it wasn't loading as "world" and was conflicting.

genboy commented 5 years ago

@itzfrozt Thank you for your complete issue report. Good move to fix the level name!

When installed there is the plugins/Festival/areas.json file. For future problem solving check if it is there, and in the source (arrays) you be able to see the "level": variable to check in what level the area is used.

itzfrozt commented 5 years ago

the issue wasn't the plugin itself as to the server thinking that the map file's default name was "spawn2" instead of "world" in which it did not save any of the areas to the areas.json @genboy