summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2013-07-21 00:04:04 +0100
committerKHobbits <rob@khobbits.co.uk>2013-07-21 00:04:04 +0100
commit298da1933420a06c2fff667d2cc9aa7f0f8dd267 (patch)
tree9a0a321353a8be9da5ba72a57b39d91e933c1da7
parente3c83be37e1811a0eb00ab3593991ea28c2142e4 (diff)
downloadEssentials-298da1933420a06c2fff667d2cc9aa7f0f8dd267.tar
Essentials-298da1933420a06c2fff667d2cc9aa7f0f8dd267.tar.gz
Essentials-298da1933420a06c2fff667d2cc9aa7f0f8dd267.tar.lz
Essentials-298da1933420a06c2fff667d2cc9aa7f0f8dd267.tar.xz
Essentials-298da1933420a06c2fff667d2cc9aa7f0f8dd267.zip
Fix max radius.
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandnear.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandnear.java b/Essentials/src/com/earth2me/essentials/commands/Commandnear.java
index 1f1f812b8..024d0c915 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandnear.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandnear.java
@@ -61,6 +61,7 @@ public class Commandnear extends EssentialsCommand
if (radius > maxRadius && !user.isAuthorized("essentials.near.maxexempt"))
{
user.sendMessage(_("radiusTooBig", maxRadius));
+ radius = maxRadius;
}
if (otherUser == null || user.isAuthorized("essentials.near.others"))
@@ -69,7 +70,7 @@ public class Commandnear extends EssentialsCommand
}
else
{
- user.sendMessage(_("noAccessCommand"));
+ throw new NotEnoughArgumentsException(_("noPerm", "essentials.near.others"));
}
}