From c97d0697834230cb6be39cf9a52ac3290bc0a906 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Thu, 1 Dec 2011 15:31:53 +0000 Subject: [PATCH] Fixing near output. --- .../src/com/earth2me/essentials/commands/Commandnear.java | 4 ++-- 1 file 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)"); } } }