Teleportation

Discussion in 'Plugin Development' started by Coopah, Jun 12, 2014.

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

    Coopah

    Anyone know how I would teleport a player to a world spawn point or a set of coords?
     
  2. Offline

    Phantom_64

    Teleporting to the spawn point of a given world.
    Code:java
    1. player.teleport(Bukkit.getWorld("worldName").getSpawnLocation());

    Teleporting to given coordinates.
    Code:java
    1. Location loc = new Location(Bukkit.getWorld("worldName"), x, y, z);
    2. player.teleport(loc);
     
Thread Status:
Not open for further replies.

Share This Page