mirror of
https://github.com/TotalFreedomMC/TF-WorldGuardExtraFlagsPlugin.git
synced 2024-12-28 10:04:50 +00:00
Fixed bypass permission is not supported on __global__ region
This commit is contained in:
parent
5903d2769b
commit
3bbee58197
3 changed files with 6 additions and 2 deletions
2
pom.xml
2
pom.xml
|
@ -73,5 +73,5 @@
|
|||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<version>3.0.0</version>
|
||||
<version>3.0.2</version>
|
||||
</project>
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue