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);
}
Aggregations