mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
fix /where not displaying decimal precision. (Thanks daeslender)
This commit is contained in:
parent
372499613e
commit
97c1e501df
@ -35,10 +35,11 @@ namespace MCGalaxy.Commands {
|
||||
Player.Message(p, "You can only use /where on people in games when you are in referee mode."); return;
|
||||
}
|
||||
|
||||
short x = (short)pl.pos[0], y = (short)pl.pos[1], z = (short)pl.pos[2];
|
||||
Player.Message(p, "{0} %Sis on {1} %S(X:&b{2} %SY:&b{3} %SZ:&b{4}%S)",
|
||||
pl.ColoredName, pl.level.ColoredName, x >> 5, (y - 51) >> 5, z >> 5);
|
||||
Player.Message(p, "Yaw: &b{0} %Sdegrees, Pitch: &b{1} %Sdegrees",
|
||||
int x = (short)pl.pos[0], y = (short)pl.pos[1] - 51, z = (short)pl.pos[2];
|
||||
Player.Message(p, "{0} %Sis on {1}", pl.ColoredName, pl.level.ColoredName);
|
||||
Player.Message(p, " X: &b{0:F5} %SY: &b{1:F5} %SZ: &b{2:F5}",
|
||||
x / 32.0, y / 32.0, z / 32.0);
|
||||
Player.Message(p, " Yaw: &b{0} %Sdegrees, Pitch: &b{1} %Sdegrees",
|
||||
(int)(p.rot[0] * 360 / 256), (int)(p.rot[1] * 360 / 256));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user