From 6944823a8bb459f670410430388040859457719f Mon Sep 17 00:00:00 2001 From: KingCreator11 Date: Wed, 1 Jun 2022 16:18:19 -0400 Subject: [PATCH] Fixed scoreboard showing vanish players bug --- .../com/gmail/nossr50/util/scoreboards/ScoreboardWrapper.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/util/scoreboards/ScoreboardWrapper.java b/src/main/java/com/gmail/nossr50/util/scoreboards/ScoreboardWrapper.java index be3e97cb4..deb8edea9 100644 --- a/src/main/java/com/gmail/nossr50/util/scoreboards/ScoreboardWrapper.java +++ b/src/main/java/com/gmail/nossr50/util/scoreboards/ScoreboardWrapper.java @@ -20,6 +20,7 @@ import com.gmail.nossr50.util.skills.SkillTools; import org.apache.commons.lang.Validate; import org.bukkit.Bukkit; import org.bukkit.ChatColor; +import org.bukkit.OfflinePlayer; import org.bukkit.entity.Player; import org.bukkit.scheduler.BukkitRunnable; import org.bukkit.scheduler.BukkitTask; @@ -633,6 +634,9 @@ public class ScoreboardWrapper { if (name.equals(playerName)) { name = ChatColor.GOLD + "--You--"; } + else { + name = " " + ChatColor.WHITE + name + " "; + } sidebarObjective.getScore(name).setScore(stat.statVal); }