Don't fail out of saves just because a single player fails.

This commit is contained in:
t00thpick1 2017-09-01 00:45:22 -04:00
parent f279a979e3
commit f1f02fd005

View File

@ -52,8 +52,15 @@ public final class UserManager {
mcMMO.p.debug("Saving mcMMOPlayers... (" + onlinePlayers.size() + ")");
for (Player player : onlinePlayers) {
try
{
getPlayer(player).getProfile().save();
}
catch (Exception e)
{
mcMMO.p.getLogger().warning("Could not save mcMMO player data for player: " + player.getName());
}
}
}
public static Collection<McMMOPlayer> getPlayers() {