Text components
Text components are used to format chat messages since Minecraft 1.7.x versions. You can read more about them here on Minecraft wiki.
In MCmdLogger scripting system, TextComponent is an interface, designed to provide some guidance when reading or creating text components.
Here is it's definition:
interface TextComponent {
text: string
color?: string
bold?: boolean
italic?: boolean
underlined?: boolean
strikethrough?: boolean
obfuscated?: boolean
insertion?: string
clickEvent?: {
action: string
value: string
}
hoverEvent?: {
action: string
value: string
}
extra?: TextComponent[]
}