copyToClipboard

Creates a click event that copies the specified text to the clipboard when clicked.

Return

A McTextClickEvent instance with the "COPY_TO_CLIPBOARD" action and the provided text.

Parameters

text

The text to be copied to the clipboard.