Solved Teleport player to Nether

Discussion in 'Spigot Plugin Development' started by 314159265358, Jun 20, 2021.

  1. Hello guys!

    I created a new world using this code:
    Code (Java):
    WorldCreator creator = WorldCreator.name("nether_world").environment(World.Environment.NETHER);
    Bukkit.createWorld(creator);
    Using
    Code (Java):
    player.teleport(Bukkit.getWorld("nether_world").getSpawnLocation());
    I can teleport myself in the world. It is a nether world.

    After restarting the server and teleporting in the world, it is the overworld.

    Do you know why?

    Thanks!
     
  2. Oops... I made a mistake..