You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/docs/en/guides/plugin/chat-formatting.mdx
+140-1Lines changed: 140 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "Formatting the chat"
3
-
description: "Learn how to format the chat using the PlayerChatEvent"
3
+
description: "Learn how to format the chat using the PlayerChatEvent and rich text with TinyMessage"
4
4
authors:
5
5
- name: "oskarscot"
6
6
link: "https://oskar.scot"
@@ -11,6 +11,8 @@ authors:
11
11
The chat uses the PlayerChatEvent, it contains the formatter, the PlayerRef for the sender, the content as well as a list of targets (it's safe to assume the targets is the list of players who can see the chat message)
12
12
You can cancel this event as well as modify the content and the formatter.
13
13
14
+
## Manual Formatting (Standard Approach)
15
+
14
16
```java
15
17
publicclassChatFormatter {
16
18
@@ -45,3 +47,140 @@ The formatter is the following interface:
45
47
}
46
48
}
47
49
```
50
+
51
+
---
52
+
53
+
## TinyMessage - Rich Text Formatting (Easy Alternative)
54
+
55
+

56
+
57
+
**TinyMessage** is a lightweight, powerful rich text parser for Hytale servers that allows you to use simple tags to create gradients, hex colors, clickable links, and nested styles in chat messages. Similar to minecraft MiniMessage
58
+
59
+
### Features
60
+
***Gradients:**`<gradient:red:blue>Hello</gradient>` or multi-color `<gradient:gold:red:black>...`
61
+
***Hex Colors:**`<color:#FF55FF>Custom Colors</color>` or `<color:red>Named Colors</color>`
0 commit comments