Class CommandExample.CommandExampleInfoBuilder

java.lang.Object
id.luckynetwork.lyrams.lyralibs.core.command.data.CommandExample.CommandExampleInfoBuilder
Enclosing class:
CommandExample

public static class CommandExample.CommandExampleInfoBuilder extends Object
  • 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

      public CommandExample.CommandExampleInfoBuilder addDescription(String usage, String example)
      It adds a description to the command

      Example: LyraMS = "The player Name" hi = "The message"

      Parameters:
      usage - The usage of the command.
      example - The example command.
      Returns:
      The CommandExampleInfoBuilder object.
    • build

      public CommandExample build()
      Builds the CommandExampleInfo object
      Returns:
      A new CommandExampleInfo object.