mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Fix issue with updating players that are offline.
This commit is contained in:
parent
811626e67b
commit
2e1c585005
@ -193,8 +193,8 @@ public class ScoreboardManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Config.getInstance().getPowerLevelTagsEnabled()) {
|
if (Config.getInstance().getPowerLevelTagsEnabled() && !dirtyPowerLevels.contains(playerName)) {
|
||||||
dirtyPowerLevels.add(player.getName());
|
dirtyPowerLevels.add(playerName);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Config.getInstance().getSkillLevelUpBoard()) {
|
if (Config.getInstance().getSkillLevelUpBoard()) {
|
||||||
@ -326,12 +326,13 @@ public class ScoreboardManager {
|
|||||||
return false; // indicates
|
return false; // indicates
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!dirtyPowerLevels.isEmpty()) {
|
|
||||||
mcMMO.p.getLogger().info(dirtyPowerLevels.toString());
|
|
||||||
}
|
|
||||||
|
|
||||||
for (String playerName : dirtyPowerLevels) {
|
for (String playerName : dirtyPowerLevels) {
|
||||||
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(playerName);
|
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(playerName, true);
|
||||||
|
|
||||||
|
if (mcMMOPlayer == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
Player player = mcMMOPlayer.getPlayer();
|
Player player = mcMMOPlayer.getPlayer();
|
||||||
int power = mcMMOPlayer.getPowerLevel();
|
int power = mcMMOPlayer.getPowerLevel();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user