Solved Bukkit.getWorlds() does not contain a world

Discussion in 'Spigot Plugin Development' started by Rixterz, May 19, 2017.

  1. Hi

    I have an overworld called 'world'. I also have an end world which is not 'world_the_end', it's 'cleanWorld' because apparently you can't unload default worlds.

    Bukkit.getWorlds() contains 'world' and 'world_the_end', and isn't picking up 'cleanWorld' even though it's in the correct folder. Why's that?
     
  2. electronicboy

    IRC Staff

    Bukkit doesn't automatically add worlds in the folder, you'd either have to use the API to manually to load the world, or use an existing plugin
     
    • Winner Winner x 1
  3. Got it working with

    Code (Text):
    Bukkit.createWorld(new WorldCreator("cleanWorld"));
    Thank you!