mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Fix max radius.
This commit is contained in:
parent
e3c83be37e
commit
298da19334
1 changed files with 2 additions and 1 deletions
|
@ -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"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue