Update KSpigotChat.kt
This commit is contained in:
@@ -47,8 +47,8 @@ class KSpigotComponentBuilder {
|
|||||||
|
|
||||||
// SPECIAL
|
// SPECIAL
|
||||||
|
|
||||||
fun legacyText(text: String, color: ChatColor = ChatColor.WHITE) {
|
fun legacyText(text: String, color: ChatColor = ChatColor.WHITE, builder: BaseComponent.() -> Unit = { }) {
|
||||||
this += TextComponent.fromLegacyText(text, color)
|
this += TextComponent.fromLegacyText(text, color).onEach { it.apply(builder) }
|
||||||
}
|
}
|
||||||
|
|
||||||
operator fun plusAssign(baseComponent: BaseComponent) {
|
operator fun plusAssign(baseComponent: BaseComponent) {
|
||||||
|
Reference in New Issue
Block a user