From 95620c65ccf21c9001a652e74eecb396d7786c44 Mon Sep 17 00:00:00 2001 From: Jakob K Date: Mon, 28 Jun 2021 13:47:10 +0200 Subject: [PATCH] Add docs for the legacyText function --- guide/docs/extensions/literal_text.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/guide/docs/extensions/literal_text.md b/guide/docs/extensions/literal_text.md index 2d984bfe..bd78b525 100644 --- a/guide/docs/extensions/literal_text.md +++ b/guide/docs/extensions/literal_text.md @@ -117,3 +117,15 @@ literalText("base text") { } } ``` + +## Add legacy chat components + +You can add legacy text if you want to use the old color codes for some reason. + +```kotlin +literalText("base text") { + legacyText("§cthis text is red") { + // optional text body to format the legacy text + } +} +```