1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-02-24 08:22:56 +01:00

SignProtection another fix

This commit is contained in:
ementalo 2011-07-22 17:03:55 +01:00
parent 5e64fe97de
commit 6396689991

View File

@ -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;
}