mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-15 02:59:06 +02:00
Fixing near output.
This commit is contained in:
@@ -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)");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user