Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean islockedMsg(Player player, Location location, PlayerInteractEvent e) {
- LandArea landsArea = lands.getArea(location);
- if (landsArea == null) return true;
- System.out.println("test if he can acces lands aria " + landsArea.getLand().getDefaultArea().getRole(player.getUniqueId()).getName());
- System.out.println("test if he can acces lands aria " + landsArea.getLand().getDefaultArea().getRole(player.getUniqueId()).hasFlag(new RoleFlag(ChestStorage.getInstance(), RoleFlag.Category.MANAGEMENT, "INTERACT_CONTAINER")));
- System.out.println("test if he can acces lands aria " + landsArea.getLand().getDefaultArea().getRole(player.getUniqueId()).hasFlag(new RoleFlag(ChestStorage.getInstance(), RoleFlag.Category.MANAGEMENT, "interact_container")));
- System.out.println("test if he can acces lands " + landsArea.getLand().getDefaultArea().getRole(player.getUniqueId()).hasFlag(new RoleFlag(ChestStorage.getInstance(), RoleFlag.Category.ACTION, "INTERACT_CONTAINER")));
- System.out.println("test if he can acces lands " + landsArea.getLand().getDefaultArea().getRole(player.getUniqueId()).hasFlag(new RoleFlag(ChestStorage.getInstance(), RoleFlag.Category.ACTION, "interact_container")));
- System.out.println("test if he can acces lands " + landsArea.getLand().getDefaultArea().getRole(player.getUniqueId()).hasFlag(new RoleFlag(ChestStorage.getInstance(), RoleFlag.Category.ACTION, "interact_container")));
- System.out.println("flag output " + new RoleFlag(ChestStorage.getInstance(), RoleFlag.Category.ACTION, "interact_container").getTogglePerm());
- System.out.println("test if he can acces lands jkfgdsgkdjgbhd " + landsArea.getLand().getDefaultArea().getRole(player.getUniqueId()).hasFlag(new RoleFlag(ChestStorage.getInstance(), RoleFlag.Category.ACTION, "INTERACT_GENERAL")));
- //landsArea.getLand().getSubAreas(location.getWorld()).stream().iterator().next().hasFlag(player.getUniqueId(),new RoleFlag(ChestStorage.getInstance(), RoleFlag.Category.ACTION, "interact_container"));
- System.out.println("test if he can acces " + landsArea.hasFlag(player.getUniqueId(), new RoleFlag(ChestStorage.getInstance(), RoleFlag.Category.ACTION, "INTERACT_CONTAINER")));
- return landsArea.hasFlag(player.getUniqueId(), new RoleFlag(ChestStorage.getInstance(), RoleFlag.Category.ACTION, "INTERACT_CONTAINER"));
- }
Add Comment
Please, Sign In to add comment