diff options
author | KHobbits <rob@khobbits.co.uk> | 2011-12-01 15:31:53 +0000 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2011-12-01 15:31:53 +0000 |
commit | c97d0697834230cb6be39cf9a52ac3290bc0a906 (patch) | |
tree | cd44f92cfc3daf3e60ec875bc0fa29ccd6fffae3 | |
parent | b0377498f72814cb78e1ffd0286ffd4a92333f50 (diff) | |
download | Essentials-c97d0697834230cb6be39cf9a52ac3290bc0a906.tar Essentials-c97d0697834230cb6be39cf9a52ac3290bc0a906.tar.gz Essentials-c97d0697834230cb6be39cf9a52ac3290bc0a906.tar.lz Essentials-c97d0697834230cb6be39cf9a52ac3290bc0a906.tar.xz Essentials-c97d0697834230cb6be39cf9a52ac3290bc0a906.zip |
Fixing near output.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandnear.java | 4 |
1 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 cfb8d671b..95d3ce808 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandnear.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandnear.java @@ -49,13 +49,13 @@ public class Commandnear extends EssentialsCommand if (playerLoc.getWorld() != world) { continue; } final double delta = playerLoc.distanceSquared(loc); - if (delta > radius) + if (delta < radius) { if (output.length() > 0) { output.append(", "); } - output.append(user.getDisplayName()).append("&f(&4").append(delta).append("m&f)"); + output.append(player.getDisplayName()).append("&f(&4").append(delta).append("m&f)"); } } } |