Package simpleserver.config.xml

Examples of simpleserver.config.xml.PermissionContainer


    super("area");
  }

  @Override
  void convert(Attributes attributes, Stack<PermissionContainer> stack) throws SAXException {
    PermissionContainer container = stack.peek();

    String[] parts = attributes.getValue("start").split(";");
    String[] coords = parts[0].split(",");
    Coordinate start;
    if (coords.length == 2) {
View Full Code Here


    super("block");
  }

  @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

    super("chests");
  }

  @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

    super("blocks");
  }

  @Override
  void convert(Attributes attributes, Stack<PermissionContainer> stack) throws SAXException {
    PermissionContainer container = stack.peek();
    AllBlocks blocks = new AllBlocks();
    blocks.fullInit();

    if (attributes.getIndex("allowDestroy") >= 0) {
      blocks.destroy = new Permission(attributes.getValue("allowDestroy"));
View Full Code Here

    super("command");
  }

  @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(",");
View Full Code Here

TOP

Related Classes of simpleserver.config.xml.PermissionContainer

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.