TP keeps player pitch and yaw

This commit is contained in:
Dan E
2024-05-06 13:31:40 +01:00
parent 1e2451511e
commit c4cc691ecd
@@ -54,6 +54,9 @@ public class CmdTeleportSpawn implements CommandExecutor {
Location location = new Location(player.getWorld(), x,y,z);
location.setPitch(player.getLocation().getPitch());
location.setYaw(player.getLocation().getYaw());
player.teleport(location);
success = true;