public abstract class TacoHelpCommand extends TacoCommand
/command ?. Specific help can be formatted in the following ways:
TacoCommandHandler,
TacoCommand| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList<java.lang.String> |
gOutput |
protected int |
maxElements |
protected java.util.HashMap<TacoCommand,java.lang.String> |
sOutput |
| Constructor and Description |
|---|
TacoHelpCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.String |
getCommandName()
Gets the command name.
|
protected abstract void |
initGeneral()
Used to initiate data entered into the general output.
|
protected abstract void |
initSpecific()
Used to initiate data entered into the specific output.
|
boolean |
onConsoleCommand(java.lang.String[] args)
Same method from its superclass,
TacoCommand. |
boolean |
onPlayerCommand(org.bukkit.entity.Player player,
java.lang.String[] args)
Same method from its superclass,
TacoCommand. |
private void |
showHelp(int page,
org.bukkit.entity.Player player)
Shows general help to the player.
|
private void |
showHelp(java.lang.String command,
org.bukkit.entity.Player player)
Shows specific help to the player.
|
getAliasesprotected java.util.HashMap<TacoCommand,java.lang.String> sOutput
protected java.util.ArrayList<java.lang.String> gOutput
protected int maxElements
protected abstract java.lang.String getCommandName()
protected abstract void initGeneral()
/command ?protected abstract void initSpecific()
/command ? >subcommand<public boolean onPlayerCommand(org.bukkit.entity.Player player,
java.lang.String[] args)
TacoCommand.onPlayerCommand in class TacoCommandplayer - The player that typed the commandargs - The arguments of the commandfalse by default, if false is returned the player will be given.
an {@link InvalidPermissionsMessage InvalidPermissionsMessage}public boolean onConsoleCommand(java.lang.String[] args)
TacoCommand.onConsoleCommand in class TacoCommandargs - The arguments of the commandfalse by default, if false is returned a message saying "[PluginName] This can't be
run from console" will printed to console.private void showHelp(java.lang.String command,
org.bukkit.entity.Player player)
command - - The subcommand to get help fromplayer - - The Player to send help toprivate void showHelp(int page,
org.bukkit.entity.Player player)
page - - The page to get help fromplayer - - The player to send help to