Teleportation help

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

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

    LordManegane

    Well, im making a plugin that works with teleportation and stuff.
    But when i do something like
    Code:java
    1. x.teleport(newlocation);

    It changes the chamera angle, thers a way to dont change it wen the player teleport?
     
  2. Offline

    tommycake50

    Yes.
    player.teleport(new Location(player.getWorld(), x, y, z, player.getLocation().getYaw(), player.getLocation().getPitch()));
     
Thread Status:
Not open for further replies.

Share This Page