Merge pull request #24 from eXeC64/master

Fixed bug where players are unable to remove their own chest protection.
This commit is contained in:
snowleo 2011-09-20 05:44:50 -07:00
commit 3879d582d3

View file

@ -183,14 +183,19 @@ public class SignProtection extends EssentialsSign
SignProtectionState retstate = SignProtectionState.NOSIGN; SignProtectionState retstate = SignProtectionState.NOSIGN;
for (SignProtectionState state : signs.values()) for (SignProtectionState state : signs.values())
{ {
if (state == SignProtectionState.OWNER || state == SignProtectionState.ALLOWED)
if (state == SignProtectionState.OWNER)
{ {
return state; return state;
} }
if (state == SignProtectionState.NOT_ALLOWED) if (state == SignProtectionState.ALLOWED)
{ {
retstate = state; retstate = state;
} }
else if (state == SignProtectionState.NOT_ALLOWED && retstate != SignProtectionState.ALLOWED)
{
retstate = state
}
} }
return retstate; return retstate;
} }