Formatting codes

Colour Codes
Messages sent from the server to the client can contain colour codes, which allow colouring of text for various purposes.

An section sign (§) followed by a hex digit in the message tells the client to switch colours while displaying text.

It is important to note that a § at the end of a message that is not followed by a hex digit will crash all clients that receive it, so it is a must to sanitize chat messages received from clients.

Also, §k will give a bit of scrolling text, which is used in a Splash and the End Poem.

Also §l §m §n and §o creates bold, striked, underlined and italic text, respectively, while §r resets any set states.



Formatting Codes
Text can also be formatted using the § symbol and then a letter.

If a colour code is used after a formatting code, the formatting code will be disabled beyond the colour code point.

Example §cX§nY (§c X §n Y)

Would be seen as: X Y, where as

§nX§cY (§n X §c Y)

Would be seen as: X Y 

§r can be used to reset all texts format beyond it.

Eg: §nXXX§rYYY, would be seen as: XXX YYY