Add docs for the legacyText function

This commit is contained in:
Jakob K
2021-06-28 13:47:10 +02:00
parent 3a633e7580
commit 95620c65cc

View File

@@ -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
}
}
```