1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-18 04:21:31 +02:00

Fixed bug preventing players from removing their own signs

This commit is contained in:
Harry Jeffery
2011-09-20 12:33:42 +01:00
parent ac1f2badc7
commit fe15bab05f

View File

@@ -183,14 +183,19 @@ 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
}
}
return retstate;
}