withClickCommand

infix fun Style.withClickCommand(event: String): @NotNull Style

Sets the click event of this style to run a command from a string.

Return

The style with the applied click event

Parameters

event

The command string to run