slight fix on rank manager cuz i forgot sth

This commit is contained in:
night0721 2022-07-13 15:01:32 +01:00
parent ce2c7df7dc
commit 0726441da7
2 changed files with 1 additions and 2 deletions

View file

@ -14,6 +14,5 @@ public class BelowNameManager {
obj.setDisplayName(ChatColor.RED + ""); obj.setDisplayName(ChatColor.RED + "");
player.setScoreboard(board); player.setScoreboard(board);
player.setHealth(player.getHealth()); player.setHealth(player.getHealth());
} }
} }

View file

@ -38,7 +38,7 @@ public class RankManager {
e.printStackTrace(); e.printStackTrace();
} }
for(Player player : Bukkit.getOnlinePlayers()) { for(Player player : Bukkit.getOnlinePlayers()) {
if(player.getUniqueId() != uuid) { if(player.hasPlayedBefore()) {
main.getNameTagManager().removeTag(player); main.getNameTagManager().removeTag(player);
main.getNameTagManager().newTag(player); main.getNameTagManager().newTag(player);
} }