Refix chat handling.
This commit is contained in:
parent
30f4fdf6c6
commit
c735053bc3
@ -98,8 +98,11 @@ public class FactionsChatListener implements Listener {
|
|||||||
|
|
||||||
if (!Conf.chatTagReplaceString.isEmpty() && eventFormat.contains(Conf.chatTagReplaceString)) {
|
if (!Conf.chatTagReplaceString.isEmpty() && eventFormat.contains(Conf.chatTagReplaceString)) {
|
||||||
// we're using the "replace" method of inserting the faction tags
|
// 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);
|
InsertIndex = eventFormat.indexOf(Conf.chatTagReplaceString);
|
||||||
|
eventFormat = eventFormat.replace(Conf.chatTagReplaceString, "");
|
||||||
Conf.chatTagPadAfter = false;
|
Conf.chatTagPadAfter = false;
|
||||||
Conf.chatTagPadBefore = false;
|
Conf.chatTagPadBefore = false;
|
||||||
} else if (!Conf.chatTagInsertAfterString.isEmpty() && eventFormat.contains(Conf.chatTagInsertAfterString)) {
|
} else if (!Conf.chatTagInsertAfterString.isEmpty() && eventFormat.contains(Conf.chatTagInsertAfterString)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user