mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-12-28 11:37:45 +01:00
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;
|
||||
}
|
||||
|
||||
String formatStart = eventFormat.substring(0, InsertIndex) + (Conf.chatTagPadBefore ? " " : "");
|
||||
String formatEnd = (Conf.chatTagPadAfter ? " " : "") + eventFormat.substring(InsertIndex);
|
||||
String formatStart = eventFormat.substring(0, InsertIndex) + ((Conf.chatTagPadBefore && !me.getChatTag().isEmpty()) ? " " : "");
|
||||
String formatEnd = ((Conf.chatTagPadAfter && !me.getChatTag().isEmpty()) ? " " : "") + eventFormat.substring(InsertIndex);
|
||||
|
||||
String nonColoredMsgFormat = formatStart + me.getChatTag().trim() + formatEnd;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user