From 298da1933420a06c2fff667d2cc9aa7f0f8dd267 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Sun, 21 Jul 2013 00:04:04 +0100 Subject: [PATCH] Fix max radius. --- .../src/com/earth2me/essentials/commands/Commandnear.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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")); } }