summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandnear.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandnear.java b/Essentials/src/com/earth2me/essentials/commands/Commandnear.java
index 71205cdb8..8cec4dd66 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandnear.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandnear.java
@@ -58,6 +58,8 @@ public class Commandnear extends EssentialsCommand
}
}
+ radius = Math.abs(radius);
+
if (radius > maxRadius && !user.isAuthorized("essentials.near.maxexempt"))
{
user.sendMessage(_("radiusTooBig", maxRadius));