public class CommandBuilder extends CommandLink<CommandBuilder>
CommandLink.Executor, CommandLink.Requirement| Modifier and Type | Field and Description |
|---|---|
protected String[] |
aliases |
protected String |
description |
protected String |
name |
protected String |
permission |
children, executor, requires| Constructor and Description |
|---|
CommandBuilder(@NotNull String name)
Creates a new
CommandBuilder |
| Modifier and Type | Method and Description |
|---|---|
CommandBuilder |
alias(String... aliases)
Sets the command's aliases
|
@NotNull Command |
build()
Creates a new
Command instance using the supplied values |
CommandBuilder |
description(@Nullable String description)
Sets the description of the command
|
protected @NotNull CommandBuilder |
getThis() |
CommandBuilder |
permission(@Nullable String permission)
Sets the permission of the command
|
executes, getChildren, getExecutor, requires, requiresBlock, requiresEntity, requiresLocatable, requiresPlayer, thenprotected final String name
protected String permission
protected String description
protected String[] aliases
public CommandBuilder(@NotNull
@NotNull String name)
CommandBuildername - The name of the commandpublic CommandBuilder permission(@Nullable @Nullable String permission)
permission - The permissionpublic CommandBuilder description(@Nullable @Nullable String description)
description - The descriptionpublic CommandBuilder alias(@NotNull String... aliases)
aliases - The aliases@NotNull public @NotNull Command build()
Command instance using the supplied valuesCommand instance@NotNull protected @NotNull CommandBuilder getThis()
getThis in class CommandLink<CommandBuilder>Copyright © 2024. All rights reserved.