How to unload a world

Discussion in 'Plugin Development' started by Kostronor, Aug 17, 2011.

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

    Kostronor

    Hey there, i want to unload a specific world from my server and load it again later.
    Like starting and stopping a world on command, how would you do this?
     
  2. Offline

    bergerkiller

    To load:
    Code:
    Bukkit.getServer().createWorld(String worldname, Environment environment);
    To unload:
    Code:
    Bukkit.getServer().unloadWorld(World w, bool save);
    Note that you should check if the world exists, to prevent unneeded world creation.
     
  3. Offline

    Kostronor

    Very cool, thanks!
     
Thread Status:
Not open for further replies.

Share This Page