mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-07 11:10:04 +01:00
Fix for scoreboard on login
This commit is contained in:
parent
4452fa33fc
commit
5c0305e950
@ -94,7 +94,7 @@ public class Join implements Listener {
|
|||||||
|
|
||||||
PlayerData playerData = playerDataManager.getPlayerData(player);
|
PlayerData playerData = playerDataManager.getPlayerData(player);
|
||||||
playerData.setTexture(playerTexture[0], playerTexture[1]);
|
playerData.setTexture(playerTexture[0], playerTexture[1]);
|
||||||
playerData.save();
|
Bukkit.getScheduler().runTaskAsynchronously(plugin, playerData::save);
|
||||||
} else {
|
} else {
|
||||||
playerDataManager.createPlayerData(player);
|
playerDataManager.createPlayerData(player);
|
||||||
playerDataManager.loadPlayerData(player);
|
playerDataManager.loadPlayerData(player);
|
||||||
@ -106,7 +106,7 @@ public class Join implements Listener {
|
|||||||
cooldownManager.addCooldownPlayer(CooldownType.Creation, cooldownManager.loadCooldownPlayer(CooldownType.Creation, player));
|
cooldownManager.addCooldownPlayer(CooldownType.Creation, cooldownManager.loadCooldownPlayer(CooldownType.Creation, player));
|
||||||
cooldownManager.addCooldownPlayer(CooldownType.Deletion, cooldownManager.loadCooldownPlayer(CooldownType.Deletion, player));
|
cooldownManager.addCooldownPlayer(CooldownType.Deletion, cooldownManager.loadCooldownPlayer(CooldownType.Deletion, player));
|
||||||
|
|
||||||
if (scoreboardManager != null) {
|
if (scoreboardManager != null && playerDataManager.getPlayerData(player).isScoreboard()) {
|
||||||
scoreboardManager.addPlayer(player);
|
scoreboardManager.addPlayer(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user