mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-01-11 02:47:33 +01:00
Allow passthrough allow on global to override added members/owners.
This commit is contained in:
parent
aca0d843f6
commit
570b7f7b77
@ -361,7 +361,8 @@ public <V> V getEffectiveFlag(final ProtectedRegion region, Flag<V> flag, @Nulla
|
|||||||
if (flag == Flags.PASSTHROUGH) {
|
if (flag == Flags.PASSTHROUGH) {
|
||||||
// Has members/owners -> the global region acts like
|
// Has members/owners -> the global region acts like
|
||||||
// a regular region without PASSTHROUGH
|
// a regular region without PASSTHROUGH
|
||||||
if (region.hasMembersOrOwners() || region.getFlag(Flags.PASSTHROUGH) == State.DENY) {
|
State passthrough = region.getFlag(Flags.PASSTHROUGH);
|
||||||
|
if (passthrough == State.DENY || passthrough != State.ALLOW && region.hasMembersOrOwners()) {
|
||||||
return null;
|
return null;
|
||||||
} else {
|
} else {
|
||||||
return (V) State.ALLOW;
|
return (V) State.ALLOW;
|
||||||
|
Loading…
Reference in New Issue
Block a user