Package simpleserver.config.xml

Examples of simpleserver.config.xml.Area


      ((Config) stack.firstElement()).dimensions.add(dimension);
    }

    DimensionAreaStorage.setInstance(((Config) stack.firstElement()).dimensions.get(dimension).areas);

    Area area = new Area(attributes.getValue("name"), start, end);
    if (attributes.getIndex("owner") >= 0) {
      area.owner = attributes.getValue("owner").toLowerCase();
    }
    area.init();
    area.finish();

    if (container instanceof Config) {
      ((Config) container).dimensions.get(dimension).add(area);
    } else {
      ((Area) container).areas.add(area);
View Full Code Here


      }
      if (player.getServer().config.playerArea(player) != null) {
        player.addTMessage(Color.RED, "New area can not be saved before you remove your old one!");
        return;
      }
      Area area = createPlayerArea(player);
      Set<Area> overlaps = config.dimensions.overlaps(area);
      if (!overlaps.isEmpty()) {
        player.addTMessage(Color.RED, "Your area overlaps with other areas and could therefore not be saved!");
        StringBuilder str = new StringBuilder();
        for (Area overlap : overlaps) {
View Full Code Here

      player.addTMessage(Color.RED, "You entered an invalid argument.");
    }
  }

  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;
View Full Code Here

TOP

Related Classes of simpleserver.config.xml.Area

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.