Discussion in 'Plugin Development' started by Ogami Shiro, May 18, 2023.
How to create, save, unload and load worlds from plugin folder?
@Ogami Shiro You can create a world using Bukkit#createWorld(WorldCreator). This also loads the world. If the world already exists, then it's simply loaded. To unload worlds, you can use Bukkit#unloadWorld(String, boolean). The second argument indicates whether the world should be saved or not.
Separate names with a comma.