Fixed bypass permission is not supported on __global__ region

This commit is contained in:
isokissa3 2018-04-18 18:42:27 +03:00
parent 5903d2769b
commit 3bbee58197
3 changed files with 6 additions and 2 deletions

View file

@ -73,5 +73,5 @@
<scope>provided</scope>
</dependency>
</dependencies>
<version>3.0.0</version>
<version>3.0.2</version>
</project>

View file

@ -67,6 +67,10 @@ public class WorldGuardUtils
NormativeOrders.sort(checkForRegions);
ProtectedRegion global = WorldGuardExtraFlagsPlugin.getWorldGuardPlugin().getRegionManager(world).getRegion(ProtectedRegion.GLOBAL_REGION);
if (WorldGuardUtils.hasBypass(player, world, global, flag)) //Lets do like this for now to reduce dublicated code
{
global = null;
}
return new FlagValueCalculator(checkForRegions, global);
}

View file

@ -1,5 +1,5 @@
name: WorldGuardExtraFlags
version: 3.0.1
version: 3.0.2
description: Adds more flags to WorldGuard to help manage your server easily!
author: isokissa3
website: https://goldtreevers.net