Annotation Interface SystemCommand
A class annotated by this annotation will allow modifying the server's behavior.
- Since:
- 0.4.0
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionRetrieves the command's description.booleanWhether the command will be run in background.Retrieves the label of command, that should be unique, otherwise, an exception will be thrown.String[]Retrieves a list of usage for the command.
-
Element Details
-
label
String labelRetrieves the label of command, that should be unique, otherwise, an exception will be thrown.- Returns:
- the
Stringlabel of command - See Also:
- Default:
- ""
-
usage
String[] usageRetrieves a list of usage for the command.- Returns:
- a list of
Stringinstructions that the command is supporting
- Default:
- {""}
-
description
String descriptionRetrieves the command's description.- Returns:
- the
Stringcommand's description
- Default:
- ""
-
isBackgroundRunning
boolean isBackgroundRunningWhether the command will be run in background.- Returns:
truewhen the command will be run in a separated thread, otherwise, returnsfalse
- Default:
- false
-