Creating a new world

Discussion in 'Plugin Development' started by Megolas, Aug 7, 2012.

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

    Megolas

    Hey,
    Is it possible to take an already ready world folder and make it a world without going through server.createWorld(String name), let it genereate a world and replacing it with the existing one?
    Thanks!
     
  2. Offline

    C0lAK1nG

    Yes use a plugin i sugest Multiverse-core and use the command /mv import <name> NORMAL
     
  3. Offline

    Megolas

    Any simple way that doesnt require me installing other plugins and using their API?
     
  4. Offline

    LucasEmanuel

    This is a copy of my main class, it loads a world on server start. If there is no world with that name, it creates a new one. If there is a world with that name it loads it.

    Code:
    World templateworld = this.getServer().createWorld(new WorldCreator(this.getConfig().getString("templateworldname")));
     
    robertlit, Orange Tabby and gmemstr like this.
Thread Status:
Not open for further replies.

Share This Page