mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Don't fail out of saves just because a single player fails.
This commit is contained in:
parent
f279a979e3
commit
f1f02fd005
@ -52,8 +52,15 @@ 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) {
|
||||||
|
try
|
||||||
|
{
|
||||||
getPlayer(player).getProfile().save();
|
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() {
|
public static Collection<McMMOPlayer> getPlayers() {
|
||||||
|
Loading…
Reference in New Issue
Block a user