literalCommand

@Contract(value = "_, _ -> new", pure = true)
inline fun <S> literalCommand(name: String, builder: LiteralArgumentBuilder<S>.() -> Unit): LiteralArgumentBuilder<S>

Creates a new Brigadier literal argument builder with the given name, applying the given builder to it and returning the result.

Return

a new literal argument builder

Parameters

S

the command source type

name

the name of the literal

builder

the builder to apply