Alliance chat is now white, with ally-colour names.

This commit is contained in:
Harry Jeffery 2011-09-24 20:30:15 +01:00
parent 46abcadf93
commit f4d56d4796
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ public class Conf {
public static boolean chatTagPadAfter = true;
public static String chatTagFormat = "%s"+ChatColor.WHITE;
public static String factionChatFormat = "%s"+ChatColor.WHITE+" %s";
public static String allianceChatFormat = "%s"+colorAlly+" %s";
public static String allianceChatFormat = "%s"+ChatColor.WHITE+" %s";
public static boolean allowNoSlashCommand = true;

View File

@ -57,8 +57,8 @@ public class FactionsChatEarlyListener extends PlayerListener{
return;
} else if (me.getChatMode() == ChatMode.ALLIANCE ) {
String message = String.format(Conf.allianceChatFormat, me.getNameAndRelevant(me), msg);
Faction myFaction = me.getFaction();
String message = String.format(Conf.allianceChatFormat, Conf.colorAlly+"["+myFaction.getTag()+"] "+me.getName(), msg);
//Send message to our own faction
myFaction.sendMessage(message);