Class CommandExample.CommandExampleInfoBuilder
java.lang.Object
id.luckynetwork.lyrams.lyralibs.core.command.data.CommandExample.CommandExampleInfoBuilder
- Enclosing class:
- CommandExample
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDescription(String usage, String example) It adds a description to the commandbuild()Builds the CommandExampleInfo objectIt adds an example to the command Example: /message LyraMS hi
-
Constructor Details
-
CommandExampleInfoBuilder
public CommandExampleInfoBuilder()
-
-
Method Details
-
example
It adds an example to the command Example: /message LyraMS hi- Parameters:
example- The example of the command.- Returns:
- The CommandExampleInfoBuilder object.
-
addDescription
It adds a description to the commandExample: LyraMS = "The player Name" hi = "The message"
- Parameters:
usage- The usage of the command.example- The example command.- Returns:
- The CommandExampleInfoBuilder object.
-
build
Builds the CommandExampleInfo object- Returns:
- A new CommandExampleInfo object.
-