From b1ee58a2b62269a93f6edbc94fa9a0e44e3172fe Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Sat, 24 Sep 2011 21:22:23 +0100 Subject: [PATCH] Fixed alliance chat still being purple. --- .../factions/listeners/FactionsChatEarlyListener.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/massivecraft/factions/listeners/FactionsChatEarlyListener.java b/src/com/massivecraft/factions/listeners/FactionsChatEarlyListener.java index a167c4db..cc15b8a9 100644 --- a/src/com/massivecraft/factions/listeners/FactionsChatEarlyListener.java +++ b/src/com/massivecraft/factions/listeners/FactionsChatEarlyListener.java @@ -58,7 +58,9 @@ public class FactionsChatEarlyListener extends PlayerListener{ } else if (me.getChatMode() == ChatMode.ALLIANCE ) { Faction myFaction = me.getFaction(); - String message = String.format(Conf.allianceChatFormat, Conf.colorAlly+"["+myFaction.getTag()+"] "+me.getName(), msg); + + String factionAndName = ChatColor.stripColor(me.getNameAndTag()); + String message = Conf.colorAlly+factionAndName+ChatColor.WHITE+" "+msg; //Send message to our own faction myFaction.sendMessage(message);