# Package net.axay.kspigot.chat

## Types

KColors
Link copied to clipboard
open class KColors
Content copied to clipboard
KSpigotComponentBuilder
Link copied to clipboard
class KSpigotComponentBuilder
Content copied to clipboard
LiteralTextBuilder
Link copied to clipboard
class LiteralTextBuilder(internalText: BaseComponent)
Content copied to clipboard

## Functions

chatComponent
Link copied to clipboard
inline fun chatComponent(builder: KSpigotComponentBuilder.() -> Unit): Array<out BaseComponent>
Content copied to clipboard
clickEvent
Link copied to clipboard
fun BaseComponent.clickEvent(action: ClickEvent.Action, value: String)
Content copied to clipboard
col
Link copied to clipboard
fun col(rgb: Int): ChatColor
Content copied to clipboard
Creates a new ChatColor instance from the provided hex code.
fun col(hex: String): ChatColor
Content copied to clipboard
Creates a new ChatColor instance from the provided hex code.
hoverEventEntity
Link copied to clipboard
fun BaseComponent.hoverEventEntity(type: String, id: String, baseComponent: BaseComponent)
Content copied to clipboard
hoverEventItem
Link copied to clipboard
fun BaseComponent.hoverEventItem(id: String, count: Int, tag: ItemTag)
Content copied to clipboard
hoverEventText
Link copied to clipboard
inline fun BaseComponent.hoverEventText(builder: KSpigotComponentBuilder.() -> Unit)
Content copied to clipboard
literalText
Link copied to clipboard
inline fun literalText(baseText: String = "", builder: LiteralTextBuilder.() -> Unit = { }): TextComponent
Content copied to clipboard
Opens a LiteralTextBuilder.
sendMessage
Link copied to clipboard
fun CommandSender.sendMessage(vararg components: BaseComponent)
Content copied to clipboard
fun CommandSender.sendMessage(builder: KSpigotComponentBuilder.() -> Unit)
Content copied to clipboard
sendText
Link copied to clipboard
inline fun CommandSender.sendText(baseText: String = "", crossinline builder: LiteralTextBuilder.() -> Unit = { })
Content copied to clipboard
Opens a LiteralTextBuilder.