mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-12 09:35:26 +02:00
Use the absolute radius value.
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user