broken-arrow

Untitled

Oct 23rd, 2021 (edited)
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.30 KB | None | 0 0
  1.     public boolean islockedMsg(Player player, Location location, PlayerInteractEvent e) {
  2.         LandArea landsArea = lands.getArea(location);
  3.         if (landsArea == null) return true;
  4.  
  5.         System.out.println("test if he can acces lands aria " + landsArea.getLand().getDefaultArea().getRole(player.getUniqueId()).getName());
  6.         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")));
  7.         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")));
  8.  
  9.         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")));
  10.         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")));
  11.  
  12.         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")));
  13.  
  14.         System.out.println("flag output " + new RoleFlag(ChestStorage.getInstance(), RoleFlag.Category.ACTION, "interact_container").getTogglePerm());
  15.         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")));
  16.         //landsArea.getLand().getSubAreas(location.getWorld()).stream().iterator().next().hasFlag(player.getUniqueId(),new RoleFlag(ChestStorage.getInstance(), RoleFlag.Category.ACTION, "interact_container"));
  17.         System.out.println("test if he can acces " + landsArea.hasFlag(player.getUniqueId(), new RoleFlag(ChestStorage.getInstance(), RoleFlag.Category.ACTION, "INTERACT_CONTAINER")));
  18.         return landsArea.hasFlag(player.getUniqueId(), new RoleFlag(ChestStorage.getInstance(), RoleFlag.Category.ACTION, "INTERACT_CONTAINER"));
  19.     }
Add Comment
Please, Sign In to add comment