mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-17 03:54:19 +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"))
|
if (radius > maxRadius && !user.isAuthorized("essentials.near.maxexempt"))
|
||||||
{
|
{
|
||||||
user.sendMessage(_("radiusTooBig", maxRadius));
|
user.sendMessage(_("radiusTooBig", maxRadius));
|
||||||
|
radius = maxRadius;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (otherUser == null || user.isAuthorized("essentials.near.others"))
|
if (otherUser == null || user.isAuthorized("essentials.near.others"))
|
||||||
@@ -69,7 +70,7 @@ public class Commandnear extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
user.sendMessage(_("noAccessCommand"));
|
throw new NotEnoughArgumentsException(_("noPerm", "essentials.near.others"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user