legacyText

fun legacyText(legacyText: String, init: ClickableText.() -> Unit = {})

Adds a new text component from a legacy message formatted with § and color codes. Useful for things such as player display names.

Parameters

legacyText

The legacy text to convert display.

init

Function to apply formatting in a declarative style.