Teleport to new World

Discussion in 'Plugin Development' started by spacemoehre, Aug 19, 2014.

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

    spacemoehre

    How can i teleport my Player p to a new World, which is already in my Server folder??
     
  2. Offline

    Necrodoom

    Get the world by name using Bukkit.getWorld() method, use resulted world object in teleport method.
     
  3. Offline

    br456

    spacemoehre
    You have to get the world, and teleport the player to spawn location

    public static World getWorld(String name)

    Bukkit.getWorld();

    Teleport player to the world spawn location or wherever you want
     
  4. Offline

    Zupsub

    Have you looked at the javadocs for Player? There's exact the method you'll need. Look at the javadocs for World to get the spawn location.

    http://jd.bukkit.org/rb/apidocs/
     
Thread Status:
Not open for further replies.

Share This Page