Teleporting players to specific coordinates.

Discussion in 'Plugin Development' started by frozenpoptartmc, Aug 2, 2013.

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

    frozenpoptartmc

    I'm trying to make a teleportation system via signs like every server on the face of the planet, but I want to write it myself.

    I have everything I need to make this work except actually teleporting them.
    It seems Bukkit hasn't implemented .setX, .setY, and .setZ, but that's okay.
    ANYWAY ENOUGH RAMBLING jeez
    Help would be appreciated!
    Thanks,
    frozenpoptart
     
  2. Offline

    ampayne2

    You can do player.teleport(location) or player.getLocation().setX/etc. :p
     
  3. Think this should work:
    Code:java
    1. player.teleport(new Location(Bukkit.getWorld("WORLDNAME"), XCor, YCor, ZCor));
     
  4. Offline

    frozenpoptartmc

    Thanks! :D I feel stupid now, haha!
     
Thread Status:
Not open for further replies.

Share This Page