Check for worldguard bypass permissions

This commit is contained in:
dordsor21 2021-11-05 19:04:15 +00:00
parent 971ae04020
commit 95ecb5609d
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -140,6 +140,10 @@ public class WorldGuardFeature extends BukkitMaskManager implements Listener {
return true;
} else if (region.isOwner("*")) {
return true;
} else if (localplayer.hasPermission("worldguard.region.bypass")
|| localplayer.hasPermission("worldguard.region.bypass."
+ localplayer.getWorld().getName().toLowerCase(Locale.ROOT))) {
return true;
}
//Check if the player has the FAWE permission for editing in WG regions as member, then checking member status.