Hey guys. How would I be able to rotate a player 360 degrees? Would I simply just set the Yaw? Also, it shouldn't be quick I was hoping it would be a 360 degree rotation that lasts about 3 seconds so it's smooth. Thanks!
Just teleport the player with his exact location while adjusting the yaw. Don't forget to check what his yaw is first though. The ternary operator is useful for this. Here is an example of a player being turned around. Code:java Location flipped = new Location(p.getWorld(), p.getX(), p.getY(), p.getZ(), (p.getYaw() < 180 ? p.getYaw() - 180 : p.getYaw() + 180), p.getPitch());