Class StringVariableValueArgument.Builder<C>

java.lang.Object
cloud.commandframework.arguments.CommandArgument.Builder<C,String>
rocks.gravili.notquests.paper.commands.arguments.variables.StringVariableValueArgument.Builder<C>
Enclosing class:
StringVariableValueArgument<C>

public static final class StringVariableValueArgument.Builder<C> extends cloud.commandframework.arguments.CommandArgument.Builder<C,String>
  • Method Details

    • asOptionalWithDefault

      public StringVariableValueArgument.Builder<C> asOptionalWithDefault(int defaultValue)
      Sets the command argument to be optional, with the specified default value.
      Parameters:
      defaultValue - default value
      Returns:
      this builder
      Since:
      1.5.0
      See Also:
      • CommandArgument.Builder.asOptionalWithDefault(String)
    • build

      @NotNull public StringVariableValueArgument<C> build()
      Overrides:
      build in class cloud.commandframework.arguments.CommandArgument.Builder<C,String>