From 767a0247a62c88129715a856c5a529ae510df2d7 Mon Sep 17 00:00:00 2001 From: Chiss Date: Sat, 20 Sep 2014 16:36:30 +1000 Subject: [PATCH] More change to end game title :) --- .../src/nautilus/game/arcade/game/Game.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/Game.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/Game.java index aeedec08a..7fa8d8179 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/Game.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/Game.java @@ -927,6 +927,7 @@ public abstract class Game implements Listener return; String winnerText = ChatColor.WHITE + "Nobody"; + ChatColor subColor = ChatColor.WHITE; for (Player player : UtilServer.getPlayers()) { @@ -945,6 +946,8 @@ public abstract class Game implements Listener Winner = team.GetName() + " Team"; winnerText = team.GetColor() + team.GetName(); + subColor = team.GetColor(); + UtilPlayer.message(player, team.GetColor() + C.Bold + team.GetName() + " won the game!"); } else @@ -960,7 +963,7 @@ public abstract class Game implements Listener 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) Manager.GetChat().Silence(5000, false); @@ -969,6 +972,7 @@ public abstract class Game implements Listener public void AnnounceEnd(List places) { String winnerText = ChatColor.WHITE + "§lNobody won the game..."; + ChatColor subColor = ChatColor.WHITE; for (Player player : UtilServer.getPlayers()) { @@ -993,6 +997,7 @@ public abstract class Game implements Listener Winner = 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()); } @@ -1016,7 +1021,7 @@ public abstract class Game implements Listener 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) Manager.GetChat().Silence(5000, false);