mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-16 19:44:15 +02:00
Fix max radius.
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user