public abstract class Command
extends java.lang.Object
Constructor and Description |
---|
Command(SubPluginInfo plugin)
Creates a new Command
|
Modifier and Type | Method and Description |
---|---|
abstract void |
command(java.lang.String handle,
java.lang.String[] args)
Run Command
|
java.lang.String |
description()
Gets the Description of this Command
|
Command |
description(java.lang.String value)
Set the Description of this Command
|
java.lang.String[] |
help()
Get the Help Page for this Command
|
Command |
help(java.lang.String... lines)
Set the Help Page for this Command
|
SubPluginInfo |
plugin()
Gets the Plugin that registering this Command
|
void |
register(java.lang.String... handles)
Register this Command
|
java.lang.String[] |
usage()
Get the Usage of this Command
|
Command |
usage(java.lang.String... args)
Set the Usage of this Command
|
public Command(SubPluginInfo plugin)
plugin
- Pluginpublic abstract void command(java.lang.String handle, java.lang.String[] args)
handle
- Command Nameargs
- Argumentspublic SubPluginInfo plugin()
public java.lang.String description()
public Command description(java.lang.String value)
value
- Valuepublic java.lang.String[] help()
public Command help(java.lang.String... lines)
lines
- Help Page Linespublic java.lang.String[] usage()
public Command usage(java.lang.String... args)
args
- Argument Placeholderspublic void register(java.lang.String... handles)
handles
- Aliases