public static class InitOptions.Builder extends Object
InitOptions object| Constructor and Description |
|---|
Builder(@NotNull String rootCommand)
Creates a new
Builder class |
| Modifier and Type | Method and Description |
|---|---|
InitOptions.Builder |
aliases(String... aliases)
Sets the aliases of the root command
|
InitOptions |
build()
Creates a new
InitOptions based off this builder |
static @NotNull InitOptions.Builder |
create(@NotNull String rootCommand)
Creates a new
Builder instance. |
InitOptions.Builder |
createHelpCommand(boolean flag)
Sets whether a help command should be created or not
|
InitOptions.Builder |
pluginName(@NotNull String name)
Sets the custom plugin name that appears when showing the help screen
|
InitOptions.Builder |
warnOn(InitOptions.Warning... warnings)
Tells
CommandCore what warnings it should give when you register a command |
public Builder(@NotNull
@NotNull String rootCommand)
Builder classrootCommand - The name of the root command that be the root all CommandCore commandspublic InitOptions.Builder createHelpCommand(boolean flag)
flag - true if a help command should be created, false if it shouldn'tpublic InitOptions.Builder pluginName(@NotNull @NotNull String name)
name - The custom plugin namepublic InitOptions.Builder aliases(@NotNull String... aliases)
aliases - The aliasespublic InitOptions.Builder warnOn(@NotNull InitOptions.Warning... warnings)
CommandCore what warnings it should give when you register a commandwarnings - The warningspublic InitOptions build()
InitOptions based off this builderInitOptions instance@Contract(value="_ -> new",
pure=true)
@NotNull
public static @NotNull InitOptions.Builder create(@NotNull
@NotNull String rootCommand)
Builder instance. This is identical to calling new Builder(rootCommand).rootCommand - The name of the root command that will be the root of all CommandCore commandsBuilder instanceCopyright © 2024. All rights reserved.