Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpecificWorldSelector: Send error message instead of throwing exception when attempting to teleport to an unloaded world #7

Open
jaylac2000 opened this issue Aug 10, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@jaylac2000
Copy link

if running /wild for specific world

[00:58:51] [Server thread/CRITICAL]: InvalidArgumentException: "Cannot teleport player to unloaded world facworld" (EXCEPTION) in "plugins/Wilderness.phar/src/muqsit/wilderness/behaviour/defaults/SpecificWorldSelector" at line 32
[00:58:51] [Server thread/CRITICAL]: #0 plugins/Wilderness.phar/src/muqsit/wilderness/behaviour/DefaultWildernessBehaviour(48): muqsit\wilderness\behaviour\defaults\SpecificWorldSelector->select(object kielking\ApolloMCPECore\SubPlugins\NameSpaceRemover\CustomPlayer)
[00:58:51] [Server thread/CRITICAL]: #1 plugins/Wilderness.phar/src/muqsit/wilderness/command/BehaviourCommandExecutor(90): muqsit\wilderness\behaviour\DefaultWildernessBehaviour->generatePosition(object kielking\ApolloMCPECore\SubPlugins\NameSpaceRemover\CustomPlayer, object Closure)
[00:58:51] [Server thread/CRITICAL]: #2 src/pocketmine/command/PluginCommand(54): muqsit\wilderness\command\BehaviourCommandExecutor->onCommand(object kielking\ApolloMCPECore\SubPlugins\NameSpaceRemover\CustomPlayer, object pocketmine\command\PluginCommand, string[4] wild, array[0])
[00:58:51] [Server thread/CRITICAL]: #3 src/pocketmine/command/SimpleCommandMap(248): pocketmine\command\PluginCommand->execute(object kielking\ApolloMCPECore\SubPlugins\NameSpaceRemover\CustomPlayer, string[4] wild, array[0])
[00:58:51] [Server thread/CRITICAL]: #4 src/pocketmine/Server(1811): pocketmine\command\SimpleCommandMap->dispatch(object kielking\ApolloMCPECore\SubPlugins\NameSpaceRemover\CustomPlayer, string[4] wild)
[00:58:51] [Server thread/CRITICAL]: #5 src/pocketmine/Player(2310): pocketmine\Server->dispatchCommand(object kielking\ApolloMCPECore\SubPlugins\NameSpaceRemover\CustomPlayer, string[4] wild)
[00:58:51] [Server thread/CRITICAL]: #6 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(244): pocketmine\Player->chat(string[5] /wild)
[00:58:51] [Server thread/CRITICAL]: #7 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket)
[00:58:51] [Server thread/CRITICAL]: #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[00:58:51] [Server thread/CRITICAL]: #9 src/pocketmine/network/mcpe/protocol/BatchPacket(127): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket)
[00:58:51] [Server thread/CRITICAL]: #10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[00:58:51] [Server thread/CRITICAL]: #11 src/pocketmine/Player(3247): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[00:58:51] [Server thread/CRITICAL]: #12 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[00:58:51] [Server thread/CRITICAL]: #13 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[21] 174.112.105.100 54992, object raklib\protocol\EncapsulatedPacket, integer 0)
[00:58:51] [Server thread/CRITICAL]: #14 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
[00:58:51] [Server thread/CRITICAL]: #15 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
[00:58:51] [Server thread/CRITICAL]: #16 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}()
[00:58:51] [Server thread/CRITICAL]: #17 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
[00:58:51] [Server thread/CRITICAL]: #18 src/pocketmine/Server(2157): pocketmine\snooze\SleeperHandler->sleepUntil(double 1597021131.0239)
[00:58:51] [Server thread/CRITICAL]: #19 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
[00:58:51] [Server thread/CRITICAL]: #20 src/pocketmine/Server(1588): pocketmine\Server->start()
[00:58:51] [Server thread/CRITICAL]: #21 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[00:58:51] [Server thread/CRITICAL]: #22 src/pocketmine/PocketMine(304): pocketmine\server()
[00:58:51] [Server thread/CRITICAL]: #23 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

@Muqsit
Copy link
Owner

Muqsit commented Aug 10, 2020

As the error states, make sure facworld is loaded.

@Muqsit Muqsit closed this as completed Aug 10, 2020
@jaylac2000
Copy link
Author

You should add a message for unloaded world “world not loaded” or something

@Muqsit Muqsit reopened this Aug 10, 2020
@Muqsit Muqsit added the enhancement New feature or request label Aug 10, 2020
@Muqsit Muqsit changed the title error SpecificWorldSelector: Send error message instead of throwing exception when attempting to teleport to an unloaded world Aug 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants