From 7ef01ef84ce2b04f8d7fc6295c8856bc5871a82c Mon Sep 17 00:00:00 2001 From: Brettflan Date: Sun, 5 Jun 2011 22:03:58 -0500 Subject: [PATCH] don't add tag padding if player has no faction --- src/org/mcteam/factions/listeners/FactionsPlayerListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/mcteam/factions/listeners/FactionsPlayerListener.java b/src/org/mcteam/factions/listeners/FactionsPlayerListener.java index 1e1ad765..8306a433 100644 --- a/src/org/mcteam/factions/listeners/FactionsPlayerListener.java +++ b/src/org/mcteam/factions/listeners/FactionsPlayerListener.java @@ -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;