3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-03 01:50:07 +01:00

Check for worldguard bypass permissions

Dieser Commit ist enthalten in:
dordsor21 2021-11-05 19:04:15 +00:00
Ursprung 971ae04020
Commit 95ecb5609d
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -140,6 +140,10 @@ public class WorldGuardFeature extends BukkitMaskManager implements Listener {
return true; return true;
} else if (region.isOwner("*")) { } else if (region.isOwner("*")) {
return true; 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. //Check if the player has the FAWE permission for editing in WG regions as member, then checking member status.