Refix chat handling.

This commit is contained in:
drtshock 2014-08-02 18:19:56 -05:00
parent 30f4fdf6c6
commit c735053bc3

View File

@ -98,8 +98,11 @@ public class FactionsChatListener implements Listener {
if (!Conf.chatTagReplaceString.isEmpty() && eventFormat.contains(Conf.chatTagReplaceString)) {
// we're using the "replace" method of inserting the faction tags
eventFormat = eventFormat.replace(Conf.chatTagReplaceString, me.getTitle());
if (eventFormat.contains("[FACTION_TITLE]")) {
eventFormat = eventFormat.replace("[FACTION_TITLE]", me.getTitle());
}
InsertIndex = eventFormat.indexOf(Conf.chatTagReplaceString);
eventFormat = eventFormat.replace(Conf.chatTagReplaceString, "");
Conf.chatTagPadAfter = false;
Conf.chatTagPadBefore = false;
} else if (!Conf.chatTagInsertAfterString.isEmpty() && eventFormat.contains(Conf.chatTagInsertAfterString)) {