summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorementalo <suror@gmx.co.uk>2011-07-22 17:03:55 +0100
committerementalo <suror@gmx.co.uk>2011-07-22 17:03:55 +0100
commit6a1c53dd0190ed1ed14bcc4415a261a1bd79b81c (patch)
treedfda0fc2604e7fbac85d227e48f5cefeb0e297d8
parentd7b2ac97aa6864bd041ebfee27bb53994849da14 (diff)
downloadEssentials-6a1c53dd0190ed1ed14bcc4415a261a1bd79b81c.tar
Essentials-6a1c53dd0190ed1ed14bcc4415a261a1bd79b81c.tar.gz
Essentials-6a1c53dd0190ed1ed14bcc4415a261a1bd79b81c.tar.lz
Essentials-6a1c53dd0190ed1ed14bcc4415a261a1bd79b81c.tar.xz
Essentials-6a1c53dd0190ed1ed14bcc4415a261a1bd79b81c.zip
SignProtection another fix
-rw-r--r--Essentials/src/com/earth2me/essentials/signs/SignProtection.java5
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;
}