Want to create a new world.

Discussion in 'Plugin Development' started by Neilnet, Mar 7, 2015.

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

    Neilnet

    Hi,

    I want to create a new world in code. This doens't mean unloading the main world, then restarting and expecting it to appear again.

    I mean, creating a new NORMAL world with any name I want. (block populators)
     
  2. Bukkit#createWorld(WorldCreator#name("Name"));

    EDIT: Sorry, totally didn't see the "Solved" prefix... :p
     
  3. Offline

    Neilnet

    @CodePlaysMinecraft

    Nope, it's not unsolved. I tried that before, seems as if it got stuck (didn't see that it got stuck). Not able to access the world.

    Gets stuck on preparing spawn..
    http://prntscr.com/6e3ici

    I don't understand how
    Code:
                player.sendMessage("Creating UHC world.");
                WorldCreator wc = new WorldCreator(WORLD_NAME);
                wc.environment(Environment.NORMAL);
                this.world = Bukkit.createWorld(wc);
    
    Creates a problem

    Okay. That's not the problem. The problem is it doesn't tell the console when the world was created. Is there any way I can a message when the world was created?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 13, 2016
  4. @Neilnet System#println("Created world: world");
     
Thread Status:
Not open for further replies.

Share This Page