component

fun PaperLiteralNode.component(name: String, block: PaperArgumentNode<Component>.() -> Unit)

Adds a formatted chat Component argument to this command.

A component argument allows structured and formatted text to be passed to commands.

Documentation: Component Argument

See also


fun PaperContext.component(name: String): Component

Retrieves the value of a Component argument from the command context.

Documentation: Component Argument

See also