diff options
author | ementalo <suror@gmx.co.uk> | 2011-07-22 17:03:55 +0100 |
---|---|---|
committer | ementalo <suror@gmx.co.uk> | 2011-07-22 17:03:55 +0100 |
commit | 6396689991484c50c56054c7aaa3e293041a5aaa (patch) | |
tree | 9da1c0f285927f20d70a617ea06e35faf53805c5 | |
parent | 5e64fe97de34b24d774e9e1b65f639af09e2fe26 (diff) | |
download | Essentials-6396689991484c50c56054c7aaa3e293041a5aaa.tar Essentials-6396689991484c50c56054c7aaa3e293041a5aaa.tar.gz Essentials-6396689991484c50c56054c7aaa3e293041a5aaa.tar.lz Essentials-6396689991484c50c56054c7aaa3e293041a5aaa.tar.xz Essentials-6396689991484c50c56054c7aaa3e293041a5aaa.zip |
SignProtection another fix
-rw-r--r-- | Essentials/src/com/earth2me/essentials/signs/SignProtection.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Essentials/src/com/earth2me/essentials/signs/SignProtection.java b/Essentials/src/com/earth2me/essentials/signs/SignProtection.java index 52848a4f7..0a74129d1 100644 --- a/Essentials/src/com/earth2me/essentials/signs/SignProtection.java +++ b/Essentials/src/com/earth2me/essentials/signs/SignProtection.java @@ -153,13 +153,12 @@ public class SignProtection extends EssentialsSign { return SignProtectionState.ALLOWED; } - else if (line.equalsIgnoreCase(username)|| ChatColor.stripColor(line).equalsIgnoreCase((username))) + else if (line.equalsIgnoreCase(username)) { return SignProtectionState.ALLOWED; } } - String signOwner = sign.getLine(3).substring(2); - if (signOwner.equalsIgnoreCase(username) || ChatColor.stripColor(signOwner).equalsIgnoreCase((username))) + if (ChatColor.stripColor(sign.getLine(3).substring(2)).equalsIgnoreCase(username)) { return SignProtectionState.OWNER; } |