More change to end game title :)

This commit is contained in:
Chiss 2014-09-20 16:36:30 +10:00
parent 6e60c301cf
commit 767a0247a6
1 changed files with 7 additions and 2 deletions

View File

@ -927,6 +927,7 @@ public abstract class Game implements Listener
return; return;
String winnerText = ChatColor.WHITE + "Nobody"; String winnerText = ChatColor.WHITE + "Nobody";
ChatColor subColor = ChatColor.WHITE;
for (Player player : UtilServer.getPlayers()) for (Player player : UtilServer.getPlayers())
{ {
@ -945,6 +946,8 @@ public abstract class Game implements Listener
Winner = team.GetName() + " Team"; Winner = team.GetName() + " Team";
winnerText = team.GetColor() + team.GetName(); winnerText = team.GetColor() + team.GetName();
subColor = team.GetColor();
UtilPlayer.message(player, team.GetColor() + C.Bold + team.GetName() + " won the game!"); UtilPlayer.message(player, team.GetColor() + C.Bold + team.GetName() + " won the game!");
} }
else else
@ -960,7 +963,7 @@ public abstract class Game implements Listener
UtilPlayer.message(player, ArcadeFormat.Line); UtilPlayer.message(player, ArcadeFormat.Line);
} }
UtilTitle.display(winnerText, "won the game", 20, 120, 20); UtilTitle.display(winnerText, subColor + "won the game", 20, 120, 20);
if (AnnounceSilence) if (AnnounceSilence)
Manager.GetChat().Silence(5000, false); Manager.GetChat().Silence(5000, false);
@ -969,6 +972,7 @@ public abstract class Game implements Listener
public void AnnounceEnd(List<Player> places) public void AnnounceEnd(List<Player> places)
{ {
String winnerText = ChatColor.WHITE + "§lNobody won the game..."; String winnerText = ChatColor.WHITE + "§lNobody won the game...";
ChatColor subColor = ChatColor.WHITE;
for (Player player : UtilServer.getPlayers()) for (Player player : UtilServer.getPlayers())
{ {
@ -993,6 +997,7 @@ public abstract class Game implements Listener
Winner = places.get(0).getName(); Winner = places.get(0).getName();
winnerText = C.cYellow + places.get(0).getName(); winnerText = C.cYellow + places.get(0).getName();
subColor = ChatColor.YELLOW;
UtilPlayer.message(player, C.cRed + C.Bold + "1st Place" + C.cWhite + " - " + places.get(0).getName()); UtilPlayer.message(player, C.cRed + C.Bold + "1st Place" + C.cWhite + " - " + places.get(0).getName());
} }
@ -1016,7 +1021,7 @@ public abstract class Game implements Listener
UtilPlayer.message(player, ArcadeFormat.Line); UtilPlayer.message(player, ArcadeFormat.Line);
} }
UtilTitle.display(winnerText, "won the game", 20, 120, 20); UtilTitle.display(winnerText, subColor + "won the game", 20, 120, 20);
if (AnnounceSilence) if (AnnounceSilence)
Manager.GetChat().Silence(5000, false); Manager.GetChat().Silence(5000, false);