Syntax
This page contains info about the syntax used by the plugin in the configuration files.
Formatting codes
It is possible to use formatting and color codes to customize messages sent to players. To format a string of text, simply use a format code this way:
&eYellow text
Colors
Default codes
Code | Color | Display | R | G | B | Hex |
---|---|---|---|---|---|---|
&0 | Black | 0 | 0 | 0 | #000000 | |
&1 | Dark blue | 0 | 0 | 170 | #0000AA | |
&2 | Dark green | 0 | 170 | 0 | #00AA00 | |
&3 | Dark aqua | 0 | 170 | 170 | #00AAAA | |
&4 | Dark red | 170 | 0 | 0 | #AA0000 | |
&5 | Dark purple | 170 | 0 | 170 | #AA00AA | |
&6 | Gold | 255 | 170 | 0 | #FFAA00 | |
&7 | Gray | 170 | 170 | 170 | #AAAAAA | |
&8 | Dark gray | 85 | 85 | 85 | #555555 | |
&9 | Blue | 85 | 85 | 255 | #5555FF | |
&a | Green | 85 | 255 | 85 | #55FF55 | |
&b | Aqua | 85 | 255 | 255 | #55FFFF | |
&c | Red | 255 | 85 | 85 | #FF5555 | |
&d | Light purple | 255 | 85 | 255 | #FF55FF | |
&e | Yellow | 255 | 255 | 85 | #FFFF55 | |
&f | White | 255 | 255 | 255 | #FFFFFF | |
&r | Reset | N/A | Used | to | reset | colors. |
Hex codes
Starting from Minecraft 1.16, it is possible to use hex color codes to display a total of ~16.8M colors. ChatPlugin recognizes the following formats:
#rrggbb
&#rrggbb
You may use a color picker to determine the hex code of a color.
Formatting
Code | Format | Display | Bedrock edition |
---|---|---|---|
&k | Obfuscated | (animated) | ✔ |
&l | Bold | ✔ | |
&m | Strikethrough | ❌ | |
&n | Underline | ❌ | |
&o | Italic | ✔ |
Formatting codes need to be applied after colors:
&e&lYellow and bold text
MiniMessage
Support for MiniMessage formatting will be added soon™️.
Recognized IDs
In this section you can find both the material and sound IDs recognized by ChatPlugin depending on the current environment and version.
Version | Bukkit material IDs | Bukkit sound IDs | Sponge material IDs | Sponge sound IDs |
---|---|---|---|---|
1.8 | HelpChat | HelpChat | GitHub | GitHub |
1.9 | HelpChat | HelpChat | ❌ - see 1.10[?] | ❌ - see 1.10 |
1.10 | HelpChat | HelpChat | GitHub | GitHub |
1.11 | HelpChat | HelpChat | GitHub | GitHub |
1.12 | HelpChat | HelpChat | GitHub | GitHub |
1.13 | HelpChat | HelpChat | ❌[?] | ❌ |
1.14 | HelpChat | HelpChat | ❌ | ❌ |
1.15 | HelpChat | HelpChat | ❌ | ❌ |
1.16 | HelpChat | HelpChat | ❌ | ❌ |
1.17 | HelpChat | HelpChat | ❌ | ❌ |
1.18 | HelpChat | HelpChat | ❌ | ❌ |
1.19 | HelpChat | HelpChat | ❌ | ❌ |
1.20 | SpigotMC | SpigotMC | ❌ | ❌ |
Timestamps
Time periods and durations in ChatPlugin are expressed in a way that supports the following timestamps:
Timestamp | Identifier(s) | Value (ms) |
---|---|---|
Second | s, S | 1000 = 1 * 103 |
Minute | m | 60000 = 6 * 104 |
Hour | h, H | 3600000 = 3.6 * 106 |
Day | d, D | 86400000 = 8.64 * 107 |
Week | w, W | 604800000 = 6.048 * 108 |
Month | M | 2592000000 = 2.592 * 109 |
Year | y, Y | 31536000000 = 3.1536 * 1010 |
They are used by the punishments' system, in configuration files and by some other modules. Here is an example of the accepted format: 23d,7h,39s
. Input string must not contain spaces and timestamps must be divided by a comma.
ChatPlugin - A complete yet lightweight plugin which handles just too many features!
This wiki is currently updated to version 1.9.10.
© 2024 Remigio07
Please report any mistakes and misspellings as described at Home/Reporting issues.