diff options
author | KHobbits <rob@khobbits.co.uk> | 2013-07-21 00:04:04 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2013-07-21 00:04:04 +0100 |
commit | 298da1933420a06c2fff667d2cc9aa7f0f8dd267 (patch) | |
tree | 9a0a321353a8be9da5ba72a57b39d91e933c1da7 | |
parent | e3c83be37e1811a0eb00ab3593991ea28c2142e4 (diff) | |
download | Essentials-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.java | 3 |
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")); } } |