How to create, save, unload and load worlds from plugin folder?

Discussion in 'Plugin Development' started by Ogami Shiro, May 18, 2023.

Thread Status:
Not open for further replies.
  1. Offline

    Ogami Shiro

    How to create, save, unload and load worlds from plugin folder?
    1.16.5
     
  2. Offline

    KarimAKL

    @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.
     
Thread Status:
Not open for further replies.

Share This Page