mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-11-24 12:16:36 +01:00
Fixed teleport shortcut not properly handling extremely large numbers
This commit is contained in:
parent
ba6a55fff6
commit
7424037795
@ -126,7 +126,7 @@ public class Util extends Queue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// command
|
// command
|
||||||
message.append("|/" + command + " teleport wid:" + worldId + " " + (x + 0.50) + " " + y + " " + (z + 0.50) + "|");
|
message.append("|/" + command + " teleport wid:" + worldId + " " + String.format("%.2f", (x + 0.50)) + " " + y + " " + String.format("%.2f", (z + 0.50)) + "|");
|
||||||
|
|
||||||
// chat output
|
// chat output
|
||||||
message.append(Color.GREY + (italic ? Color.ITALIC : "") + "(x" + x + "/y" + y + "/z" + z + worldDisplay.toString() + ")");
|
message.append(Color.GREY + (italic ? Color.ITALIC : "") + "(x" + x + "/y" + y + "/z" + z + worldDisplay.toString() + ")");
|
||||||
|
Loading…
Reference in New Issue
Block a user