Fix an IndexOutOfBoundsException: Index: 0

In SaveTimerTask.java

Fixes #2039
This commit is contained in:
TfT_02 2014-06-08 18:21:13 +02:00
parent 38e1947302
commit 0185a30ec9

View File

@ -62,8 +62,10 @@ public final class UserManager {
Collection<McMMOPlayer> playerCollection = new ArrayList<McMMOPlayer>();
for (Player player : mcMMO.p.getServer().getOnlinePlayers()) {
if (hasPlayerDataKey(player)) {
playerCollection.add(getPlayer(player));
}
}
return playerCollection;
}