I save World In sethub.java and how to load that saved world in hub.java and lobby.java I Use player.chat("/mvtp RainbowMoutains"); (That Is My Hub World) But I want to share This To Public And To be world What Admin sets with /sethub How to load that saved world Maybe: player.chat("/mvtp + "<How to load saved World?>"); READ Just Tell Me How to load Saved World And Can it be loaded here: player.chat("/mvtp + "<HERE>"); Thanks
I saving it how @Horsey Tell Me Use player#getWorld(); to get the world a player is in. Then save that world's name by world#getName(); Then use Bukkit.getWorld(worldName); to get the world.
@LandinosMC But do you save it in the config? Because to get the world name again you need to save it in the config.
idk What You Mean What Config? My Plugin Don't Extract to folder if you mean that Its Just staying as a .jar file
@LandinosMC You need to save the worldname in the config or you won't be able to use it. If you have done that then we can help with this issue again.
Like this https://pastebin.com/1YZSLfp8 ? In Line 1 There Was What To Do here Text And Really What To Do There
@LandinosMC https://bukkit.gamepedia.com/Configuration_API_Reference And why would you reload a config when you are writing to it?
@LandinosMC You don't need to reload your config though. You don't need that line either to be honest.