diff --git a/src/main/java/com/gmail/nossr50/util/player/UserManager.java b/src/main/java/com/gmail/nossr50/util/player/UserManager.java index 51dc76e4c..ffe3be1e3 100644 --- a/src/main/java/com/gmail/nossr50/util/player/UserManager.java +++ b/src/main/java/com/gmail/nossr50/util/player/UserManager.java @@ -59,10 +59,12 @@ public final class UserManager { } public static Collection getPlayers() { - Collection playerCollection = new ArrayList(); + Collection playerCollection = new ArrayList(); for (Player player : mcMMO.p.getServer().getOnlinePlayers()) { - playerCollection.add(getPlayer(player)); + if (hasPlayerDataKey(player)) { + playerCollection.add(getPlayer(player)); + } } return playerCollection;