Solved Bukkit wont load my world

Discussion in 'Spigot Plugin Development' started by Cerus, Dec 20, 2018.

  1. Hello,
    I have a world called "End". Its a new generated world. When I try to load it with this
    Code (Java):
    World world = new WorldCreator("End").createWorld();
    player.teleport(world.getSpawnLocation());
    it generates a new world and teleports me into it. Every time I execute this code a new world generates. Whats wrong with that?
    Kind regards
     
  2. Nothing's wrong? What isn't working exactly? new WorldCreator("End").createWorld(); will generate a new world each time, what are you expecting to happen?
     
  3. Im trying to load my world called "End". Its in the server directory.
     
  4. With your current code you generate a new world each time.
     
  5. And whats the code to load an existing world? I thought I can load a world with this.
     
  6. Benz56

    Moderator Supporter

    That is what I use. It will create the world if it doesn't exist or load it if it does.
     
  7. Okay, I tried it again and it works.. I dont know why .-. Thank you anyways.