@Override 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 " + 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")); }