Teleport player in other world?

Discussion in 'Plugin Development' started by ServerfromMinecraft, Aug 11, 2012.

Thread Status:
Not open for further replies.
  1. Hi!

    there is a method player.teleport ans then the location. But how i can not just teleport the player on a location but on a location in other world ?
     
  2. Offline

    Phil2812

    A Location: http://jd.bukkit.org/doxygen/da/dac/classorg_1_1bukkit_1_1Location.html specifies a world. So basically you create a Location object with the World you want the player teleport to using getServer().getWorld("WORLDNAME") and the x,y,z coordinates. Then you pass the location object to the teleport function and the player gets teleported to the world specified.
     
  3. Thanks a lot! :D
     
Thread Status:
Not open for further replies.

Share This Page