From 668eec3137fb94e641c7a5acdd438230607ca692 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Sun, 16 Feb 2014 01:15:01 +0000 Subject: Use the absolute radius value. --- Essentials/src/com/earth2me/essentials/commands/Commandnear.java | 2 ++ 1 file changed, 2 insertions(+) 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)); -- cgit v1.2.3