copyable

fun MutableComponent.copyable(copyContent: String = this.string, hover: HoverEvent? = HoverEvent.ShowText( translation("liquidbounce.tooltip.clickToCopy") )): MutableComponent

Creates text with a copy-to-clipboard click event

Receiver

The text to make copyable

Return

Styled text with copy functionality

Parameters

copyContent

The content to copy when clicked (defaults to text's string representation)

hover

The hover event to apply (defaults to "Click to copy" tooltip)