public final class CommandDefinition extends Object
| Constructor and Description |
|---|
CommandDefinition(String sName,
String sPluginName)
Builds and initializes the command definition.
|
| Modifier and Type | Method and Description |
|---|---|
CommandDefinition |
addArgument(CommandOption arg)
Adds an option to the command definition.
|
String |
getArgs()
The raw command line of this command.
|
String[] |
getCommandLine()
Merges the command line definition read from the server config file with.
|
String |
getName()
Returns the command name.
|
String |
getPluginName()
Returns the name of the plugin associated with this command.
|
void |
setArgs(String sArgs)
Sets the raw arguments of this command.
|
public void setArgs(String sArgs)
sArgs - The command linepublic String getName()
public String getPluginName()
public String getArgs()
public String[] getCommandLine()
public CommandDefinition addArgument(CommandOption arg)
arg - The option to be addedCopyright © 2013. All Rights Reserved.