don't add tag padding if player has no faction

This commit is contained in:
Brettflan 2011-06-05 22:03:58 -05:00
parent b1b96a4c1b
commit 7ef01ef84c

View File

@ -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;