diff options
author | Harry Jeffery <harry101jeffery@googlemail.com> | 2011-09-20 12:33:42 +0100 |
---|---|---|
committer | Harry Jeffery <harry101jeffery@googlemail.com> | 2011-09-20 12:33:42 +0100 |
commit | 4dc2d07e29fe8bb4f87542af9208ccd41e2257a1 (patch) | |
tree | 838cf62e6f97916e34b0e2b66c1e68288b94f22d | |
parent | 512d6a34bec38330aab750b11a6bb0d2d6384b2e (diff) | |
download | Essentials-4dc2d07e29fe8bb4f87542af9208ccd41e2257a1.tar Essentials-4dc2d07e29fe8bb4f87542af9208ccd41e2257a1.tar.gz Essentials-4dc2d07e29fe8bb4f87542af9208ccd41e2257a1.tar.lz Essentials-4dc2d07e29fe8bb4f87542af9208ccd41e2257a1.tar.xz Essentials-4dc2d07e29fe8bb4f87542af9208ccd41e2257a1.zip |
Fixed bug preventing players from removing their own signs
-rw-r--r-- | Essentials/src/com/earth2me/essentials/signs/SignProtection.java | 9 |
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; } |