mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 20:00:46 +00:00
Use the absolute radius value.
This commit is contained in:
parent
c50f559512
commit
6744b652e6
1 changed files with 2 additions and 0 deletions
|
@ -58,6 +58,8 @@ public class Commandnear extends EssentialsCommand
|
|||
}
|
||||
}
|
||||
|
||||
radius = Math.abs(radius);
|
||||
|
||||
if (radius > maxRadius && !user.isAuthorized("essentials.near.maxexempt"))
|
||||
{
|
||||
user.sendMessage(_("radiusTooBig", maxRadius));
|
||||
|
|
Loading…
Reference in a new issue