use of com.sk89q.worldguard.protection.regions.RegionQuery in project EliteMobs by MagmaGuy.
the class WorldGuardFlagChecker method doEliteMobsSpawnFlag.
public static boolean doEliteMobsSpawnFlag(Location location) {
com.sk89q.worldedit.util.Location wgLocation = BukkitAdapter.adapt(location);
RegionContainer container = WorldGuard.getInstance().getPlatform().getRegionContainer();
RegionQuery query = container.createQuery();
ApplicableRegionSet set = query.getApplicableRegions(wgLocation);
return set.testState(null, WorldGuardCompatibility.getEliteMobsSpawnFlag());
}
Aggregations