From d7b2ac97aa6864bd041ebfee27bb53994849da14 Mon Sep 17 00:00:00 2001 From: ementalo Date: Fri, 22 Jul 2011 16:56:41 +0100 Subject: [PATCH] fix of my fix --- .../src/com/earth2me/essentials/signs/SignProtection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/signs/SignProtection.java b/Essentials/src/com/earth2me/essentials/signs/SignProtection.java index f988dcb0b..52848a4f7 100644 --- a/Essentials/src/com/earth2me/essentials/signs/SignProtection.java +++ b/Essentials/src/com/earth2me/essentials/signs/SignProtection.java @@ -153,13 +153,13 @@ public class SignProtection extends EssentialsSign { return SignProtectionState.ALLOWED; } - else if (line.equalsIgnoreCase(username)|| line.equalsIgnoreCase(ChatColor.stripColor(username))) + else if (line.equalsIgnoreCase(username)|| ChatColor.stripColor(line).equalsIgnoreCase((username))) { return SignProtectionState.ALLOWED; } } String signOwner = sign.getLine(3).substring(2); - if (signOwner.equalsIgnoreCase(username) || signOwner.equalsIgnoreCase(ChatColor.stripColor(username))) + if (signOwner.equalsIgnoreCase(username) || ChatColor.stripColor(signOwner).equalsIgnoreCase((username))) { return SignProtectionState.OWNER; }