mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-04 04:51:41 +00:00
Correctly fix the N/S direction
This commit is contained in:
parent
6f77a2ba07
commit
200ef0c8e2
2 changed files with 40 additions and 13 deletions
|
@ -16,10 +16,10 @@ public class Commandgetpos extends EssentialsCommand
|
|||
public void run(Server server, User user, String commandLabel, String[] args) throws Exception
|
||||
{
|
||||
Location coords = user.getLocation();
|
||||
user.sendMessage("§7X: " + coords.getBlockX() + " (-North <-> +South)");
|
||||
user.sendMessage("§7X: " + coords.getBlockX() + " (+East <-> -West)");
|
||||
user.sendMessage("§7Y: " + coords.getBlockY() + " (+Up <-> -Down)");
|
||||
user.sendMessage("§7Z: " + coords.getBlockZ() + " (+East <-> -West)");
|
||||
user.sendMessage("§7Yaw: " + coords.getYaw() + " (Rotation)");
|
||||
user.sendMessage("§7Z: " + coords.getBlockZ() + " (+South <-> -North)");
|
||||
user.sendMessage("§7Yaw: " + (coords.getYaw() + 180 + 360) % 360 + " (Rotation)");
|
||||
user.sendMessage("§7Pitch: " + coords.getPitch() + " (Head angle)");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue