Package simpleserver.config.xml

Examples of simpleserver.config.xml.Permission


  }

  private Area createPlayerArea(Player player) {
    Area area = new Area(t("%s's area", player.getName()), player.areastart, player.areaend);
    area.owner = player.getName().toLowerCase();
    Permission perm = new Permission(player);
    AllBlocks blocks = new AllBlocks();
    blocks.destroy = perm;
    blocks.place = perm;
    blocks.use = perm;
    area.allblocks.blocks = blocks;
View Full Code Here


  @Override
  void convert(Attributes attributes, Stack<PermissionContainer> stack) throws SAXException {
    PermissionContainer container = stack.peek();
    Block block = new Block(attributes.getValue("id"));
    block.place = new Permission(attributes.getValue("allow"), attributes.getValue("disallow"));
    block.fullInit();

    container.blocks.add(block);
  }
View Full Code Here

  }

  @Override
  void convert(Attributes attributes, Stack<PermissionContainer> stack) throws SAXException {
    PermissionContainer container = stack.peek();
    Chests chests = new Chests(new Permission(attributes.getValue("allow"), attributes.getValue("disallow")));
    chests.fullInit();

    container.chests.chests = chests;
  }
View Full Code Here

        return amount;
      }
    }

    public Kit(String perm, ImmutableList<Entry> items) throws SAXException {
      this.perm = new Permission(perm);
      this.items = items;
    }
View Full Code Here

    String originalName = config == null ? commandName : config.originalName;

    PlayerCommand command = server.resolvePlayerCommand(originalName, groupObject);

    if (config != null && !overridePermissions) {
      Permission permission = server.config.getCommandPermission(config.name, args, position.coordinate());
      if (!permission.contains(this)) {
        addTMessage(Color.RED, "Insufficient permission.");
        return null;
      }
    }
View Full Code Here

    PermissionContainer container = stack.peek();
    AllBlocks blocks = new AllBlocks();
    blocks.fullInit();

    if (attributes.getIndex("allowDestroy") >= 0) {
      blocks.destroy = new Permission(attributes.getValue("allowDestroy"));
    }
    if (attributes.getIndex("allowPlace") >= 0) {
      blocks.place = new Permission(attributes.getValue("allowPlace"));
    }
    if (attributes.getIndex("allowUse") >= 0) {
      blocks.use = new Permission(attributes.getValue("allowUse"));
    }

    container.allblocks.blocks = blocks;
  }
View Full Code Here

  @Override
  void convert(Attributes attributes, Stack<PermissionContainer> stack) throws SAXException {
    PermissionContainer container = stack.peek();
    CommandConfig config = new CommandConfig(attributes.getValue("name"));
    config.fullInit();
    config.allow = new Permission(attributes.getValue("allow"), attributes.getValue("disallow"));
    if (attributes.getIndex("aliases") >= 0) {
      String[] aliases = attributes.getValue("aliases").split(",");
      config.aliases = new ArrayList<String>(aliases.length);
      for (String alias : aliases) {
        config.aliases.add(alias.toLowerCase());
View Full Code Here

TOP

Related Classes of simpleserver.config.xml.Permission

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.