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;
import java.util.ArrayList;
import mineplex.core.common.util.C;
import mineplex.core.common.util.UtilMath;
import nautilus.game.arcade.game.Game;
import nautilus.game.arcade.game.GameTeam;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
@ -124,11 +122,17 @@ public class GameScoreboard
System.out.println("Scoreboard Team: " + team.GetName().toUpperCase());
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
{
_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);
}
}