sendMessage

fun CommandContext<CommandSourceStack>.sendMessage(consumer: ComponentBuilder.() -> Unit)

Sends a message to the command sender using Adventure component DSL.

Parameters

consumer

the configuration block for the component


fun CommandContext<CommandSourceStack>.sendMessage(component: Component)

Sends a message to the command sender.

Parameters

component

the component to send