diff options
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandnear.java | 4 | ||||
-rw-r--r-- | lib/bukkit-1.0.0-R1-SNAPSHOT.jar | bin | 4398060 -> 4398306 bytes | |||
-rw-r--r-- | lib/craftbukkit-1.0.0-SNAPSHOT.jar | bin | 9793971 -> 9794342 bytes |
3 files changed, 2 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandnear.java b/Essentials/src/com/earth2me/essentials/commands/Commandnear.java index 95d3ce808..2730256ef 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandnear.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandnear.java @@ -48,14 +48,14 @@ public class Commandnear extends EssentialsCommand final Location playerLoc = player.getLocation(); if (playerLoc.getWorld() != world) { continue; } - final double delta = playerLoc.distanceSquared(loc); + final long delta = (long)playerLoc.distanceSquared(loc); if (delta < radius) { if (output.length() > 0) { output.append(", "); } - output.append(player.getDisplayName()).append("&f(&4").append(delta).append("m&f)"); + output.append(player.getDisplayName()).append("§f(§4").append(Math.sqrt(delta)).append("m§f)"); } } } diff --git a/lib/bukkit-1.0.0-R1-SNAPSHOT.jar b/lib/bukkit-1.0.0-R1-SNAPSHOT.jar Binary files differindex 06ce13fd1..8959c5712 100644 --- a/lib/bukkit-1.0.0-R1-SNAPSHOT.jar +++ b/lib/bukkit-1.0.0-R1-SNAPSHOT.jar diff --git a/lib/craftbukkit-1.0.0-SNAPSHOT.jar b/lib/craftbukkit-1.0.0-SNAPSHOT.jar Binary files differindex 57fb85990..a30a1eb2c 100644 --- a/lib/craftbukkit-1.0.0-SNAPSHOT.jar +++ b/lib/craftbukkit-1.0.0-SNAPSHOT.jar |