Package net.ME1312.Galaxi.Command
Class Command
java.lang.Object
net.ME1312.Galaxi.Command.Command
- All Implemented Interfaces:
CommandHandler
Command Layout Class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the AutoComplete handler for this Commandautocomplete
(CompletionHandler value) Sets an AutoComplete handler for this Commandstatic Command
create
(PluginInfo plugin, CommandHandler executor) Creates a new Command (by wrapping an existing executor)Gets the Description of this Commanddescription
(String value) Set the Description of this CommandString[]
help()
Get the Help Page for this CommandSet the Help Page for this Commandplugin()
Gets the Plugin that registering this Commandvoid
Register this CommandString[]
usage()
Get the Usage of this CommandSet the Usage of this CommandMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.ME1312.Galaxi.Command.CommandHandler
command
-
Constructor Details
-
Command
Creates a new Command- Parameters:
plugin
- Plugin
-
-
Method Details
-
create
Creates a new Command (by wrapping an existing executor)- Parameters:
plugin
- Pluginexecutor
- Executor
-
autocomplete
Gets the AutoComplete handler for this Command- Returns:
- AutoComplete Handler
-
autocomplete
Sets an AutoComplete handler for this Command- Parameters:
value
- AutoComplete Handler- Returns:
- The Command
-
plugin
Gets the Plugin that registering this Command- Returns:
- Plugin Info
-
description
Gets the Description of this Command- Returns:
- Command Description
-
description
Set the Description of this Command- Parameters:
value
- Value- Returns:
- The Command
-
help
Get the Help Page for this Command- Returns:
- Help Page
-
help
Set the Help Page for this Command- Parameters:
lines
- Help Page Lines- Returns:
- The Command
-
usage
Get the Usage of this Command- Returns:
- Command Usage
-
usage
Set the Usage of this Command- Parameters:
args
- Argument Placeholders- Returns:
- The Command
-
register
Register this Command- Parameters:
handles
- Aliases
-