Package ch.njol.skript.localization

Examples of ch.njol.skript.localization.Message


 
  public CommandHelp(final String command, final Color argsColor, final String langNode) {
    this.command = command;
    this.argsColor = "" + argsColor.getChat();
    this.langNode = langNode;
    description = new Message(langNode + "." + DEFAULTENTRY);
  }
View Full Code Here


        arguments.put(argument, null);
      }
    } else {
      if (argument.startsWith("<") && argument.endsWith(">")) {
        final String carg = GRAY + "<" + argsColor + argument.substring(1, argument.length() - 1) + GRAY + ">";
        wildcardArg = new Message(langNode + "." + argument);
        arguments.put(carg, wildcardArg);
      } else {
        arguments.put(argument, new Message(langNode + "." + argument));
      }
    }
    return this;
  }
View Full Code Here

    return this;
  }
 
  protected void onAdd(final CommandHelp parent) {
    langNode = parent.langNode + "." + command;
    description = new Message(langNode + "." + DEFAULTENTRY);
    command = parent.command + " " + parent.argsColor + command;
    for (final Entry<String, Object> e : arguments.entrySet()) {
      if (e.getValue() instanceof CommandHelp) {
        ((CommandHelp) e.getValue()).onAdd(this);
      } else {
        if (e.getValue() != null) { // wildcard arg
          wildcardArg = new Message(langNode + "." + e.getValue());
          e.setValue(wildcardArg);
        } else {
          e.setValue(new Message(langNode + "." + e.getKey()));
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of ch.njol.skript.localization.Message

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.