summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Essentials/src/com/earth2me/essentials/signs/SignProtection.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/signs/SignProtection.java b/Essentials/src/com/earth2me/essentials/signs/SignProtection.java
index 1db607606..b9bbfb90f 100644
--- a/Essentials/src/com/earth2me/essentials/signs/SignProtection.java
+++ b/Essentials/src/com/earth2me/essentials/signs/SignProtection.java
@@ -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;
}