mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-24 06:06:45 +01:00
Fixed scoreboard showing vanish players bug
This commit is contained in:
parent
27854720f0
commit
6944823a8b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user