From 0726441da7cd09f176dc8ab0daaa305715853c11 Mon Sep 17 00:00:00 2001 From: night0721 Date: Wed, 13 Jul 2022 15:01:32 +0100 Subject: [PATCH] slight fix on rank manager cuz i forgot sth --- src/main/java/com/night/nullvalkyrie/Rank/BelowNameManager.java | 1 - src/main/java/com/night/nullvalkyrie/Rank/RankManager.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/night/nullvalkyrie/Rank/BelowNameManager.java b/src/main/java/com/night/nullvalkyrie/Rank/BelowNameManager.java index 3a6f3d4..02ac5d8 100644 --- a/src/main/java/com/night/nullvalkyrie/Rank/BelowNameManager.java +++ b/src/main/java/com/night/nullvalkyrie/Rank/BelowNameManager.java @@ -14,6 +14,5 @@ public class BelowNameManager { obj.setDisplayName(ChatColor.RED + "❤"); player.setScoreboard(board); player.setHealth(player.getHealth()); - } } diff --git a/src/main/java/com/night/nullvalkyrie/Rank/RankManager.java b/src/main/java/com/night/nullvalkyrie/Rank/RankManager.java index 9e9b00b..65001d4 100644 --- a/src/main/java/com/night/nullvalkyrie/Rank/RankManager.java +++ b/src/main/java/com/night/nullvalkyrie/Rank/RankManager.java @@ -38,7 +38,7 @@ public class RankManager { e.printStackTrace(); } for(Player player : Bukkit.getOnlinePlayers()) { - if(player.getUniqueId() != uuid) { + if(player.hasPlayedBefore()) { main.getNameTagManager().removeTag(player); main.getNameTagManager().newTag(player); }