From 12e3b2b84a68acf8f25639d7ece3f10be7c6e3e2 Mon Sep 17 00:00:00 2001 From: ArcticZeroo Date: Mon, 23 Oct 2017 10:29:36 -0400 Subject: [PATCH] Add team color to vanish quit messages (PC-1161) --- .../src/nautilus/game/arcade/ArcadeManager.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/ArcadeManager.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/ArcadeManager.java index 84416ddd9..9c9e693f9 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/ArcadeManager.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/ArcadeManager.java @@ -925,7 +925,13 @@ public class ArcadeManager extends MiniPlugin implements IRelation { if (event.getNewState()) //Is going into incognito { - UtilServer.broadcast(F.sys("Quit", event.getPlayer().getName())); + GameTeam team = _game.GetTeam(event.getPlayer()); + + if (team != null) { + UtilServer.broadcast(F.sys("Quit", team.GetColor() + event.getPlayer().getName())); + } else { + UtilServer.broadcast(F.sys("Quit", event.getPlayer().getName())); + } if (_game != null && _game.GetCountdown() > 0) //Lobby is counting down { @@ -935,8 +941,6 @@ public class ArcadeManager extends MiniPlugin implements IRelation _game.GetPlayerGems().remove(event.getPlayer()); // Leave Team - GameTeam team = _game.GetTeam(event.getPlayer()); - if (team != null) { team.RemovePlayer(event.getPlayer());