How to load and handle an additional world?

Discussion in 'Plugin Development' started by MinecraftShamrock, Feb 10, 2014.

Thread Status:
Not open for further replies.
  1. I know I can load a world like this:
    Code:java
    1. WorldCreator dwc = new WorldCreator("world_XYZ");
    2. dwc.environment(Environment.NORMAL);
    3. //set some other constants
    4. Bukkit.createWorld(dwc);

    But after this, can I just access the world through Bukkit.getWorld("world_XYZ")? And then to unload it I can use Bukkit.unloadWorld("world_XYZ", true);

    But is there anything else I need to do in order to be able to handle the world as a normal map?

    EDIT: I know there is Multiverse. But I would like to use my own lightweight method.
     
  2. Bumb. I looked at some public plugins and it seems like they also use this method to load a world. But is there anything else that I have to take care of?
     
Thread Status:
Not open for further replies.

Share This Page