Package org.bukkit.permissions

Examples of org.bukkit.permissions.PermissionAttachmentInfo


    @Override
    public Set<PermissionAttachmentInfo> getEffectivePermissions() {
        Set<PermissionAttachmentInfo> ret = new HashSet<PermissionAttachmentInfo>();
        for (Map.Entry<String, Boolean> entry : assignedPermissions.entrySet()) {
            ret.add(new PermissionAttachmentInfo(this, entry.getKey(), null, entry.getValue()));
        }
        return ret;
    }
View Full Code Here


       * @param v The value
       * @return The previous/existing permission at this location
       */
      @Override
      public PermissionAttachmentInfo put(String k, PermissionAttachmentInfo v) {
        PermissionAttachmentInfo existing = this.get(k);
        if (existing != null) {
          return existing;
        }
        return super.put(k, v);
      }
View Full Code Here

          PermissionAttachment attach = it.previous();
          calculateChildPerms(attach.getPermissions(), false, attach);
        }

        for (Permission p : player.getServer().getPluginManager().getDefaultPermissions(isOp())) {
          this.permissions.put(p.getName(), new PermissionAttachmentInfo(player, p.getName(), null, true));
          calculateChildPerms(p.getChildren(), false, null);
        }
      }
    }
  }
View Full Code Here

                ChatColor g = ChatColor.GREEN, w = ChatColor.WHITE, r = ChatColor.RED;
               
                int start = 8 * (page - 1);
                sender.sendMessage(ChatColor.RED + "[==== " + ChatColor.GREEN + "Page " + page + " of " + numpages + ChatColor.RED + " ====]");
                for (int i = start; i < start + 8 && i < dump.size(); ++i) {
                    PermissionAttachmentInfo info = dump.get(i);
                   
                    if (info.getAttachment() == null) {
                        sender.sendMessage(g + "Node " + w + info.getPermission() + g + "=" + w + info.getValue() + g + " (" + r + "default" + g + ")");
                    } else {
                        sender.sendMessage(g + "Node " + w + info.getPermission() + g + "=" + w + info.getValue() + g + " (" + w + info.getAttachment().getPlugin().getDescription().getName() + g + ")");
                    }
                }
            }
            return true;
        } else if (subcommand.equals("group")) {
View Full Code Here

            ChatColor g = ChatColor.GREEN, w = ChatColor.WHITE, r = ChatColor.RED;

            int start = 8 * (page - 1);
            sender.sendMessage(ChatColor.RED + "[==== " + ChatColor.GREEN + "Page " + page + " of " + numpages + ChatColor.RED + " ====]");
            for (int i = start; i < start + 8 && i < dump.size(); ++i) {
                PermissionAttachmentInfo info = dump.get(i);

                if (info.getAttachment() == null) {
                    sender.sendMessage(g + "Node " + w + info.getPermission() + g + "=" + w + info.getValue() + g + " (" + r + "default" + g + ")");
                } else {
                    sender.sendMessage(g + "Node " + w + info.getPermission() + g + "=" + w + info.getValue() + g + " (" + w + info.getAttachment().getPlugin().getDescription().getName() + g + ")");
                }
            }
            return true;
        } else if (subcommand.equals("rank") || subcommand.equals("setrank")) {
            if (!checkPerm(sender, "setrank")) return true;
View Full Code Here

TOP

Related Classes of org.bukkit.permissions.PermissionAttachmentInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.