Prevent hearts changing colors in UHC tab.

This commit is contained in:
Mysticate 2016-01-28 22:54:20 -05:00
parent 951c27123a
commit caa5d922b5

View File

@ -1,12 +1,10 @@
package nautilus.game.arcade.scoreboard; package nautilus.game.arcade.scoreboard;
import java.util.ArrayList; import java.util.ArrayList;
import mineplex.core.common.util.C; import mineplex.core.common.util.C;
import mineplex.core.common.util.UtilMath; import mineplex.core.common.util.UtilMath;
import nautilus.game.arcade.game.Game; import nautilus.game.arcade.game.Game;
import nautilus.game.arcade.game.GameTeam; import nautilus.game.arcade.game.GameTeam;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
@ -122,13 +120,19 @@ public class GameScoreboard
for (GameTeam team : Game.GetTeamList()) for (GameTeam team : Game.GetTeamList())
{ {
System.out.println("Scoreboard Team: " + team.GetName().toUpperCase()); System.out.println("Scoreboard Team: " + team.GetName().toUpperCase());
if(team.GetDisplaytag()) if (team.GetDisplaytag())
{ {
_scoreboard.registerNewTeam(ParseTeamName(team.GetName().toUpperCase())).setPrefix(team.GetColor() + C.Bold + team.GetName() + team.GetColor() + " "); Team group = _scoreboard.registerNewTeam(ParseTeamName(team.GetName().toUpperCase()));
group.setPrefix(team.GetColor() + C.Bold + team.GetName() + team.GetColor() + " ");
group.setSuffix(C.Reset);
} }
else else
{ {
_scoreboard.registerNewTeam(ParseTeamName(team.GetName().toUpperCase())).setPrefix(team.GetColor() + ""); Team group = _scoreboard.registerNewTeam(ParseTeamName(team.GetName().toUpperCase()));
group.setPrefix(team.GetColor() + "");
group.setSuffix(C.Reset);
} }
} }