summaryrefslogtreecommitdiffstats
path: root/Server
diff options
context:
space:
mode:
authorDebucquoy Anthony tonitch <d.tonitch@gmail.com>2022-10-25 13:42:04 +0200
committerGitHub <noreply@github.com>2022-10-25 13:42:04 +0200
commit16f3355bbbd2170dd8f836885f5c887ff65c5f7d (patch)
treecee85a561104d295f288b5fed2b53e68d9a8c882 /Server
parentUpdate Core (diff)
downloadcuberite-16f3355bbbd2170dd8f836885f5c887ff65c5f7d.tar
cuberite-16f3355bbbd2170dd8f836885f5c887ff65c5f7d.tar.gz
cuberite-16f3355bbbd2170dd8f836885f5c887ff65c5f7d.tar.bz2
cuberite-16f3355bbbd2170dd8f836885f5c887ff65c5f7d.tar.lz
cuberite-16f3355bbbd2170dd8f836885f5c887ff65c5f7d.tar.xz
cuberite-16f3355bbbd2170dd8f836885f5c887ff65c5f7d.tar.zst
cuberite-16f3355bbbd2170dd8f836885f5c887ff65c5f7d.zip
Diffstat (limited to 'Server')
-rw-r--r--Server/Plugins/APIDump/APIDesc.lua19
1 files changed, 11 insertions, 8 deletions
diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua
index 03fb31990..f920a8f5b 100644
--- a/Server/Plugins/APIDump/APIDesc.lua
+++ b/Server/Plugins/APIDump/APIDesc.lua
@@ -2228,18 +2228,21 @@ end
Chaining example below for details.</p>
<p>
Each part of the composite chat message takes a "Style" parameter, this is a string that describes
- the formatting. It uses the following strings, concatenated together:
+ the formatting. It uses the "standard" minecraft format code without the '&' symbole, concatenated
+ together:
<table>
<tr><th>String</th><th>Style</th></tr>
- <tr><td>b</td><td>Bold text</td></tr>
- <tr><td>i</td><td>Italic text</td></tr>
- <tr><td>u</td><td>Underlined text</td></tr>
- <tr><td>s</td><td>Strikethrough text</td></tr>
- <tr><td>o</td><td>Obfuscated text</td></tr>
- <tr><td>@X</td><td>color [0–9a–f], same as dye meta</td></tr>
+ <tr><td>l</td><td>Bold text</td></tr>
+ <tr><td>o</td><td>Italic text</td></tr>
+ <tr><td>n</td><td>Underlined text</td></tr>
+ <tr><td>m</td><td>Strikethrough text</td></tr>
+ <tr><td>k</td><td>Obfuscated text</td></tr>
+ <tr><td>r</td><td>Reset Style</td></tr>
+ <tr><td>[0-9a-f]</td><td>colors</td></tr>
</table>
+ You can escape the '&' character with an antislash in front of it. as follow: `I love Choco\&chips`
The following picture, taken from the Minecraft Wiki, illustrates the color codes:</p>
- <img src="http://images.wikia.com/minecraft_gamepedia/images/archive/4/4c/20200824112326!Colors.png" />
+ <img src="https://static.wikia.nocookie.net/minecraft_gamepedia/images/7/7e/Minecraft_Formatting.gif/revision/latest/scale-to-width-down/292?cb=20200828001454" />
]],
Functions =
{