mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Re-add bypass feature
Former-commit-id: 187cfe8b1ab7403a83b3e701e22de8d1e6eb7a94
This commit is contained in:
1 parent
e9a41bf939
commit
c7ec0e1823
1 file changed
+4
-4
+4
-4
@@ -85,10 +85,10 @@ public class WorldGuardIntegration implements IntegratedPlugin {
|
||||
LocalPlayer localPlayer = WorldGuardPlugin.inst().wrapPlayer(player);
|
||||
com.sk89q.worldedit.util.Location wgLoc = BukkitAdapter.adapt(location);
|
||||
boolean canBypass = WorldGuard.getInstance().getPlatform().getSessionManager().hasBypass(localPlayer, BukkitAdapter.adapt(location.getWorld()));
|
||||
// if (canBypass) {
|
||||
// Util.debugLog("Player " + player.getName() + " bypassing the protection checks, because player have bypass permission in WorldGuard");
|
||||
// return true;
|
||||
// }
|
||||
if (canBypass) {
|
||||
Util.debugLog("Player " + player.getName() + " bypassing the protection checks, because player have bypass permission in WorldGuard");
|
||||
return true;
|
||||
}
|
||||
RegionContainer container = WorldGuard.getInstance().getPlatform().getRegionContainer();
|
||||
RegionQuery query = container.createQuery();
|
||||
for (WorldGuardFlags flag : createFlags) {
|
||||
|
||||
Reference in new issue
Block a user