WorldGuard

WorldGuard

8M Downloads

Make WorldGuard API methods that check allowance check bypass perms.

LadyCailinBot opened this issue ยท 4 comments

commented

WORLDGUARD-2714 - Reported by me4502

In CraftBook, the following code does not check with WorldGuard bypass perms

return worldGuardPlugin.getGlobalRegionManager().allows(DefaultFlag.USE, loc, worldGuardPlugin.wrapPlayer(player));

and

return worldGuardPlugin.canBuild(player, block);

Basically they should take those perms into account?

commented

Comment by wizjany

bypass is external to the actual regions

commented

Comment by me4502

So maybe a method to say, "can this player bypass this"?

commented

Comment by wizjany

like doing a permissions check?

commented

Comment by me4502

Yes, basically that.