mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-21 14:03:54 +02:00
SignProtection another fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user