From 033c2e22cd99147036488875e7c6c08d431aa8e4 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Fri, 23 Mar 2012 07:56:44 +0000 Subject: [PATCH] Remove white user prefix, if prefix is blank. Messes with EssentialsChat colouring. --- Essentials/src/com/earth2me/essentials/User.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/User.java b/Essentials/src/com/earth2me/essentials/User.java index d84ab84aa..dde0c20e2 100644 --- a/Essentials/src/com/earth2me/essentials/User.java +++ b/Essentials/src/com/earth2me/essentials/User.java @@ -291,16 +291,12 @@ public class User extends UserData implements Comparable, IReplyTo, IUser { final String prefix = ess.getPermissionsHandler().getPrefix(base).replace('&', '§'); nickname.insert(0, prefix); - if (prefix.length() < 2 || prefix.charAt(0) != '§') - { - nickname.insert(0, "§f"); - } } if (!ess.getSettings().disableSuffix()) { final String suffix = ess.getPermissionsHandler().getSuffix(base).replace('&', '§'); nickname.append(suffix); - if (suffix.length() < 2 || !suffix.substring(suffix.length() - 2, suffix.length() - 1).equals("§")) + if (suffix.length() < 2 || suffix.charAt(suffix.length() - 2) != '§') { nickname.append("§f"); }