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,7 +52,14 @@ public final class UserManager {
mcMMO.p.debug("Saving mcMMOPlayers... (" + onlinePlayers.size() + ")");
for (Player player : onlinePlayers) {
getPlayer(player).getProfile().save();
try
{
getPlayer(player).getProfile().save();
}
catch (Exception e)
{
mcMMO.p.getLogger().warning("Could not save mcMMO player data for player: " + player.getName());
}
}
}