Examples of AutoRefCommandHelpTopic


Examples of org.mctourney.autoreferee.util.commands.CommandManager.AutoRefCommandHelpTopic

      AutoRefCommand cAnnotation = method.getAnnotation(AutoRefCommand.class);
      AutoRefPermission pAnnotation = method.getAnnotation(AutoRefPermission.class);

      if (!cAnnotation.description().isEmpty())
        helpTopic = new AutoRefCommandHelpTopic(cAnnotation, pAnnotation);

      commandOptions = new Options();
      char options[] = cAnnotation.options().toCharArray();

      for (int i = 0; i < options.length; )
View Full Code Here

Examples of org.mctourney.autoreferee.util.commands.CommandManager.AutoRefCommandHelpTopic

    public boolean isAlias()
    { return alias; }

    public AutoRefCommandHelpTopic copyAlias(String alias)
    {
      AutoRefCommandHelpTopic topic = new AutoRefCommandHelpTopic(this.command, this.permissions);

      // modify the command to insert the Bukkit alias
      String[] cmd = command.name().clone(); cmd[0] = alias;
      topic.name = "/" + StringUtils.join(cmd, " ");

      topic.alias = true;
      topic.setupFullText();
      return topic;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.