mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 20:00:46 +00:00
Fixing near output.
This commit is contained in:
parent
b0377498f7
commit
c97d069783
1 changed files with 2 additions and 2 deletions
|
@ -49,13 +49,13 @@ public class Commandnear extends EssentialsCommand
|
|||
if (playerLoc.getWorld() != world) { continue; }
|
||||
|
||||
final double delta = playerLoc.distanceSquared(loc);
|
||||
if (delta > radius)
|
||||
if (delta < radius)
|
||||
{
|
||||
if (output.length() > 0)
|
||||
{
|
||||
output.append(", ");
|
||||
}
|
||||
output.append(user.getDisplayName()).append("&f(&4").append(delta).append("m&f)");
|
||||
output.append(player.getDisplayName()).append("&f(&4").append(delta).append("m&f)");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue