mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Don't fail out of saves just because a single player fails.
This commit is contained in:
parent
f279a979e3
commit
f1f02fd005
@ -52,7 +52,14 @@ public final class UserManager {
|
|||||||
mcMMO.p.debug("Saving mcMMOPlayers... (" + onlinePlayers.size() + ")");
|
mcMMO.p.debug("Saving mcMMOPlayers... (" + onlinePlayers.size() + ")");
|
||||||
|
|
||||||
for (Player player : onlinePlayers) {
|
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());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user