mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-26 20:26:34 +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.setTexture(playerTexture[0], playerTexture[1]);
|
||||
playerData.save();
|
||||
Bukkit.getScheduler().runTaskAsynchronously(plugin, playerData::save);
|
||||
} else {
|
||||
playerDataManager.createPlayerData(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.Deletion, cooldownManager.loadCooldownPlayer(CooldownType.Deletion, player));
|
||||
|
||||
if (scoreboardManager != null) {
|
||||
if (scoreboardManager != null && playerDataManager.getPlayerData(player).isScoreboard()) {
|
||||
scoreboardManager.addPlayer(player);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user