Package simpleserver.config.xml

Examples of simpleserver.config.xml.Group


      if (args.length > 1 && Dimension.get(args[1]) != Dimension.LIMBO) {
        dim = Dimension.get(args[1]);
      }
      player.setChat(new DimensionChat(player, dim));
    } else if (mode.equals("group")) {
      Group group = player.getGroup();

      Config config = player.getServer().config;

      if (args.length > 1) {
        try {
View Full Code Here


  @Override
  protected Chat getMessageInstance(Player sender, String message) {
    // TODO: make it possible to use group name(prefix)

    Group group = sender.getGroup();
    chatMessage = message;
    Config config = sender.getServer().config;

    String[] arguments = extractArguments(message);
    if (arguments.length > 1) {
View Full Code Here

    String prefix = "";
    char color = 'f';
    String title = "";
    String format = server.config.properties.get("msgFormat");
    Group group = sender.getGroup();

    if (group != null) {
      color = group.color;
      if (group.showTitle) {
        title = group.name;
View Full Code Here

  }

  @Override
  void convert(Attributes attributes, Stack<PermissionContainer> stack) throws SAXException {
    Config config = (Config) stack.peek();
    Group group = new Group(getInt(attributes.getValue("id")), attributes.getValue("name"));
    group.color = attributes.getValue("color").charAt(0);
    if (attributes.getIndex("cooldown") >= 0) {
      group.cooldown = getInt(attributes.getValue("cooldown"));
    }
    if (attributes.getIndex("warmup") >= 0) {
View Full Code Here

TOP

Related Classes of simpleserver.config.xml.Group

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.