InfinityGamers / HungerGames-UPDATED

A HungerGames plugin for PocketMine-MP developed by xBeastMode
45 stars 24 forks source link

Crash /hg add #91

Open WHOAMI74 opened 5 years ago

WHOAMI74 commented 5 years ago

[01:37:39] [Server thread/CRITICAL]: InvalidStateException: "The default world cannot be unloaded while running, please switch worlds." (EXCEPTION) in "src/pocketmine/Server" at line 1049 [01:37:39] [Server thread/DEBUG]: #0 plugins/HungerGames_dev-33.phar/src/hungergames/obj/HungerGames(204): pocketmine\Server->unloadLevel(object pocketmine\level\Level) [01:37:39] [Server thread/DEBUG]: #1 plugins/HungerGames_dev-33.phar/src/hungergames/lib/mgr/GlobalManager(34): hungergames\obj\HungerGames->createGameLevelBackup() [01:37:39] [Server thread/DEBUG]: #2 plugins/HungerGames_dev-33.phar/src/hungergames/command/HGCommand(73): hungergames\lib\mgr\GlobalManager->load(object hungergames\obj\HungerGames) [01:37:39] [Server thread/DEBUG]: #3 src/pocketmine/command/SimpleCommandMap(270): hungergames\command\HGCommand->execute(object pocketmine\Player, string[2] hg, array[2]) [01:37:39] [Server thread/DEBUG]: #4 src/pocketmine/Server(2019): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\Player, string[11] hg add Wood) [01:37:39] [Server thread/DEBUG]: #5 src/pocketmine/Player(2231): pocketmine\Server->dispatchCommand(object pocketmine\Player, string[11] hg add Wood) [01:37:39] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(240): pocketmine\Player->chat(string[12] /hg add Wood) [01:37:39] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket) [01:37:39] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [01:37:39] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/protocol/BatchPacket(123): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket) [01:37:39] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [01:37:39] [Server thread/DEBUG]: #11 src/pocketmine/Player(3124): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [01:37:39] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [01:37:39] [Server thread/DEBUG]: #13 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[17] 192.168.1.3 46704, object raklib\protocol\EncapsulatedPacket, integer 0) [01:37:39] [Server thread/DEBUG]: #14 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket() [01:37:39] [Server thread/DEBUG]: #15 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process() [01:37:39] [Server thread/DEBUG]: #16 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}() [01:37:39] [Server thread/DEBUG]: #17 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications() [01:37:39] [Server thread/DEBUG]: #18 src/pocketmine/Server(2338): pocketmine\snooze\SleeperHandler->sleepUntil(double 1561772259.1954) [01:37:39] [Server thread/DEBUG]: #19 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor() [01:37:39] [Server thread/DEBUG]: #20 src/pocketmine/Server(1774): pocketmine\Server->start() [01:37:39] [Server thread/DEBUG]: #21 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[34] /storage/emulated/0/PocketMine-MP/, string[42] /storage/emulated/0/PocketMine-MP/plugins/)

Crash after i type /hg add Wood

Swaggpvp commented 4 years ago

This happened to me also but i figured out the solution. When you do /hg add Wood your not specifying a world so it automatically chooses the default world "world". All you need to do is turn off the server, go /plugin_data/HungerGames/arenas/ and go into the arena config and change the world name from "world" to the world you want the match to be held in.