don't add tag padding if player has no faction
This commit is contained in:
parent
b1b96a4c1b
commit
7ef01ef84c
@ -92,8 +92,8 @@ public class FactionsPlayerListener extends PlayerListener{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
String formatStart = eventFormat.substring(0, InsertIndex) + (Conf.chatTagPadBefore ? " " : "");
|
String formatStart = eventFormat.substring(0, InsertIndex) + ((Conf.chatTagPadBefore && !me.getChatTag().isEmpty()) ? " " : "");
|
||||||
String formatEnd = (Conf.chatTagPadAfter ? " " : "") + eventFormat.substring(InsertIndex);
|
String formatEnd = ((Conf.chatTagPadAfter && !me.getChatTag().isEmpty()) ? " " : "") + eventFormat.substring(InsertIndex);
|
||||||
|
|
||||||
String nonColoredMsgFormat = formatStart + me.getChatTag().trim() + formatEnd;
|
String nonColoredMsgFormat = formatStart + me.getChatTag().trim() + formatEnd;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user