summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2014-02-16 01:15:01 +0000
committerKHobbits <rob@khobbits.co.uk>2014-02-16 01:15:01 +0000
commit668eec3137fb94e641c7a5acdd438230607ca692 (patch)
tree4535329ed7e4455759d86a560f0851a2f1574c9c
parent46476b36d99818dfeebc21120b5fda31b031e301 (diff)
downloadEssentials-668eec3137fb94e641c7a5acdd438230607ca692.tar
Essentials-668eec3137fb94e641c7a5acdd438230607ca692.tar.gz
Essentials-668eec3137fb94e641c7a5acdd438230607ca692.tar.lz
Essentials-668eec3137fb94e641c7a5acdd438230607ca692.tar.xz
Essentials-668eec3137fb94e641c7a5acdd438230607ca692.zip
Use the absolute radius value.
-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));