E - Represents a Plugin that implements the
Commandable interfacepublic final class HelpCommand<E extends org.bukkit.plugin.Plugin> extends SubCommand<E>
handler, plugin| Constructor and Description |
|---|
HelpCommand(E plugin,
CommandHandler<E> handler)
HelpCommand constructor. |
| Modifier and Type | Method and Description |
|---|---|
CommandStatus |
execute(org.bukkit.command.CommandSender sender,
String... args)
Displays help information about the various commands registered to and
available from the
CommandHandler instance that instantiated this
class. |
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 |
String |
getUsage()
Returns the command usage
|
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(org.bukkit.command.CommandSender sender,
String... args)
Returns a
List of possible strings that could be supplied for
the next argument |
compareTo, hasPermissionpublic HelpCommand(E plugin, CommandHandler<E> handler)
HelpCommand constructor.plugin - handler - public CommandStatus execute(org.bukkit.command.CommandSender sender, String... args)
CommandHandler instance that instantiated this
class.execute in class SubCommand<E extends org.bukkit.plugin.Plugin>sender - The command executorargs - The command arguments, starting after the subcommand nameCommandStatus representing the result of the commandpublic List<String> tabComplete(org.bukkit.command.CommandSender sender, String... args)
List of possible strings that could be supplied for
the next argumenttabComplete in class SubCommand<E extends org.bukkit.plugin.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 getUsage()
getUsage in class SubCommand<E extends org.bukkit.plugin.Plugin>SubCommandpublic String getName()
HashMap of the commands as well as the subcommand
argumentgetName in class SubCommand<E extends org.bukkit.plugin.Plugin>public InternalLang info()
info in class SubCommand<E extends org.bukkit.plugin.Plugin>Copyright © 2015. All rights reserved.