runCommand

Creates a click event that runs the specified command when clicked.

Return

A McTextClickEvent instance with the "RUN_COMMAND" action and the provided command.

Parameters

command

The command to be executed.