E - The Plugin that caused this class to be instantiatedpublic final class HelpCommand<E extends Plugin> extends CommandNode<E>
CommandNode
objects that are returned from a call to a parent's
CommandNode.traverse() methodplugin| Modifier | Constructor and Description |
|---|---|
protected |
HelpCommand(E plugin)
HelpCommand constructor. |
| Modifier and Type | Method and Description |
|---|---|
CommandStatus |
execute(CommandSender sender,
String... args)
Displays help information from all linked child
CommandNode nodes
for the parent CommandNode relevant to this HelpCommand
instance |
int |
getItemsPerPage()
Returns the number of commands displayed per page
|
String |
getName()
Subcommand name: "help"
Returns the name of the command, used for storing a HashMap of
the commands as well as the subcommand argument |
InternalLang |
info()
Information about this specific command.
|
void |
setItemsPerPage(int factor)
Sets the number of commands to show information for per page.
|
List<String> |
tabComplete(CommandSender sender,
String... args)
Returns a
List of possible strings that could be supplied for the
next argument |
String |
usage()
Describes the usage in the context of this specific
CommandNode |
addChild, addChild, alias, aliasAsBukkitCommand, attachReloadCommand, compareTo, disallowProxiedSenders, filterUsage, getAliases, getChild, getChild, getChildren, getClosestChild, getHelpOutput, getLinkingNode, getParent, getUsage, hasRestriction, isExecutable, minimumArguments, onCommand, onTabComplete, registerAsBukkitCommand, registerAsListener, requirePermission, setExecutable, setRestriction, toString, traverseprotected HelpCommand(E plugin)
HelpCommand constructor.plugin - public CommandStatus execute(CommandSender sender, String... args)
CommandNode nodes
for the parent CommandNode relevant to this HelpCommand
instanceexecute in class CommandNode<E extends Plugin>sender - The command executorargs - The command arguments, starting after the subcommand nameCommandStatus representing the result of the command.
This will throw an NPE if null is returnedpublic List<String> tabComplete(CommandSender sender, String... args)
List of possible strings that could be supplied for the
next argumenttabComplete in class CommandNode<E extends Plugin>sender - The command "tabber"args - The command arguments, starting after the subcommand name and
contains potentially unfinished argumentsList of strings that can be supplied for the next argpublic void setItemsPerPage(int factor)
Paginator cachefactor - The number of commands per pagepublic int getItemsPerPage()
public String usage()
CommandNodeusage in class CommandNode<E extends Plugin>CommandNode.getName()public String getName()
HashMap of
the commands as well as the subcommand argumentgetName in class CommandNode<E extends Plugin>public InternalLang info()
info in class CommandNode<E extends Plugin>Copyright © 2015. All rights reserved.