Search in sources :

Example 6 with RegionContainer

use of com.sk89q.worldguard.bukkit.RegionContainer in project UltraCosmetics by iSach.

the class FlagManager method flagCheck.

@Override
protected boolean flagCheck(StateFlag flag, Player bukkitPlayer) {
    RegionContainer rc = WGBukkit.getPlugin().getRegionContainer();
    RegionQuery query = rc.createQuery();
    return query.testState(bukkitPlayer.getLocation(), bukkitPlayer, flag);
}
Also used : RegionContainer(com.sk89q.worldguard.bukkit.RegionContainer) RegionQuery(com.sk89q.worldguard.bukkit.RegionQuery)

Aggregations

RegionContainer (com.sk89q.worldguard.bukkit.RegionContainer)6 RegionQuery (com.sk89q.worldguard.bukkit.RegionQuery)4 RegionManager (com.sk89q.worldguard.protection.managers.RegionManager)2 EventHandler (org.bukkit.event.EventHandler)2 BaseCommand (com.alpsbte.plotsystem.commands.BaseCommand)1 BlockVector (com.sk89q.worldedit.BlockVector)1 LocalPlayer (com.sk89q.worldguard.LocalPlayer)1 DefaultDomain (com.sk89q.worldguard.domains.DefaultDomain)1 StorageException (com.sk89q.worldguard.protection.managers.storage.StorageException)1 GlobalProtectedRegion (com.sk89q.worldguard.protection.regions.GlobalProtectedRegion)1 ProtectedCuboidRegion (com.sk89q.worldguard.protection.regions.ProtectedCuboidRegion)1 ProtectedRegion (com.sk89q.worldguard.protection.regions.ProtectedRegion)1 Location (org.bukkit.Location)1 BlockState (org.bukkit.block.BlockState)1 FileConfiguration (org.bukkit.configuration.file.FileConfiguration)1 Player (org.bukkit.entity.Player)1 TrapDoor (org.bukkit.material.TrapDoor)1 NMSAssistant (preponderous.ponder.minecraft.bukkit.nms.NMSAssistant)1