diff options
author | ementalo <suror@gmx.co.uk> | 2011-07-22 16:56:41 +0100 |
---|---|---|
committer | ementalo <suror@gmx.co.uk> | 2011-07-22 16:56:41 +0100 |
commit | 5e64fe97de34b24d774e9e1b65f639af09e2fe26 (patch) | |
tree | 15ae168301d646af19cc362dd3d2b2c0234ed596 | |
parent | 8ef7005e20bdd949dc544ecc01d0c0916d10e083 (diff) | |
download | Essentials-5e64fe97de34b24d774e9e1b65f639af09e2fe26.tar Essentials-5e64fe97de34b24d774e9e1b65f639af09e2fe26.tar.gz Essentials-5e64fe97de34b24d774e9e1b65f639af09e2fe26.tar.lz Essentials-5e64fe97de34b24d774e9e1b65f639af09e2fe26.tar.xz Essentials-5e64fe97de34b24d774e9e1b65f639af09e2fe26.zip |
fix of my fix
-rw-r--r-- | Essentials/src/com/earth2me/essentials/signs/SignProtection.java | 4 |
1 files 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; } |