mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-21 05:51:56 +02:00
SignProtection another fix
This commit is contained in:
@@ -153,13 +153,12 @@ public class SignProtection extends EssentialsSign
|
|||||||
{
|
{
|
||||||
return SignProtectionState.ALLOWED;
|
return SignProtectionState.ALLOWED;
|
||||||
}
|
}
|
||||||
else if (line.equalsIgnoreCase(username)|| ChatColor.stripColor(line).equalsIgnoreCase((username)))
|
else if (line.equalsIgnoreCase(username))
|
||||||
{
|
{
|
||||||
return SignProtectionState.ALLOWED;
|
return SignProtectionState.ALLOWED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
String signOwner = sign.getLine(3).substring(2);
|
if (ChatColor.stripColor(sign.getLine(3).substring(2)).equalsIgnoreCase(username))
|
||||||
if (signOwner.equalsIgnoreCase(username) || ChatColor.stripColor(signOwner).equalsIgnoreCase((username)))
|
|
||||||
{
|
{
|
||||||
return SignProtectionState.OWNER;
|
return SignProtectionState.OWNER;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user