Examples of CommandAliasHelpTopic


Examples of ch.njol.skript.command.Commands.CommandAliasHelpTopic

      try {
        final Field topics = IndexHelpTopic.class.getDeclaredField("allTopics");
        topics.setAccessible(true);
        final ArrayList<HelpTopic> as = new ArrayList<HelpTopic>((Collection<HelpTopic>) topics.get(aliases));
        for (final String alias : activeAliases) {
          final HelpTopic at = new CommandAliasHelpTopic("/" + alias, "/" + getLabel(), help);
          as.add(at);
          helps.add(at);
        }
        Collections.sort(as, HelpTopicComparator.helpTopicComparatorInstance());
        topics.set(aliases, as);
View Full Code Here

Examples of org.bukkit.craftbukkit.v1_7_R4.help.CommandAliasHelpTopic

            // Register the command
            forceCommand(name, command, new DenizenCommandHelpTopic(command));
            // Register each alias
            for (String alias : command.getAliases()) {
                if (denizenCommands.containsKey(alias)) continue;
                forceCommand(alias, command, new CommandAliasHelpTopic("/" + alias, name,
                        DenizenAPI.getCurrentInstance().getServer().getHelpMap()));
            }
        }
    }
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.