Command.Output| Constructor and Description |
|---|
TimerCommand() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Command.Output output,
String... params)
Executes the given command with the given parameters.
|
String |
getDescription()
Returns a short description of the command.
|
String |
getName()
Returns the name of the part.
|
public void execute(Command.Output output, String... params) throws Exception
Commandexecute in interface Commandoutput - provides access to the output interface used to generate outputparams - provides the parameters entered in the consoleException - in case of an error. Throw a HandledException to
signal, that all logging and handling has already been performed.
Any other exception will be logged and reported as system error.@Nonnull public String getName()
NamedThe return value is used as part name when the Register annotation is processed.
public String getDescription()
CommandgetDescription in interface CommandCopyright © 2018. All rights reserved.