hsyyid / EssentialCmds

EssentialCmds adds useful commands to Minecraft
https://bit.ly/2HPQ9tR
MIT License
31 stars 21 forks source link

Handle unloaded worlds on teleportation commands. #139

Open cartman-2000 opened 8 years ago

cartman-2000 commented 8 years ago

It would be nice to have an unloaded world(An unloaded but not disabled world.) auto load when someone tries to use /home or /warp, or the other teleportation type commands, to go to a point in an unloaded world. At the moment, these commands just print out an error when a world the port is in isn't loaded, and the world has to be manually loaded with /world load worldname.

hsyyid commented 8 years ago

This could cause issues, as what if the world is unloaded by a server admin on purpose? They would not want players still able to override that and warp there. I'll think about this

cartman-2000 commented 8 years ago

You could add an option to the configs to either allow, or disallow the auto loading of a world when using a warp/home, you could give a general "World is unloaded." message when it's been disallowed. You could have the config options as either a global option, and/or a per world option.