Skip to content

Commit

Permalink
Fix dead players showing up in loc.find
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Sep 28, 2013
1 parent 62d5955 commit 60254e0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -507,7 +507,7 @@ else if (attribute.startsWith("players")
int radius = aH.matchesInteger(attribute.getContext(2)) ? attribute.getIntContext(2) : 10;
attribute.fulfill(2);
for (Player player : Bukkit.getOnlinePlayers())
if (Utilities.checkLocation(this, player.getLocation(), radius))
if (!player.isDead() && Utilities.checkLocation(this, player.getLocation(), radius))
found.add(new dPlayer(player));

Collections.sort(found, new Comparator<dPlayer>() {
Expand Down

0 comments on commit 60254e0

Please sign in to comment.