mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Check for worldguard bypass permissions
This commit is contained in:
parent
971ae04020
commit
95ecb5609d
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user