Merge branch 'master' of github.com:essentials/Essentials into essmaster

This commit is contained in:
KHobbits 2011-09-20 15:13:08 +01:00
commit 9c998eac2f

View File

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