[CSM] Coloured chat [colour_chat]

User avatar
Posts: 14
Joined: Sun Jan 14, 2018 10:58
Location: Scotland
GitHub: BenjieFiftysix
In-game: fiftysix or benjie

[CSM] Coloured chat [colour_chat]

by FiftySix » Sun May 20, 2018 17:26

colour_chat CSM
A CSM mod for changing the colour of text sent to the server.
Original version was made by red-001, more features were added by me. Pastel added by dhausmig.

chat commands:
Code: Select all
(note: all colours must be a 6 letter hex code with a "#" - eg: "#ffffff")
    .get_colour <name>                         -  get the hex value from a colour name
    .get_color <name>                          -  same as get_colour, but with different spelling
    .set_colour [<col1> [<col2> [<times>]]]    -  Set the default chat colour to either one solid colour, or a fade between two colours. 'times' is how many times to fade between them. Leave blank to reset to white.
    .set_color [<col1> [<col2> [<times>]]]     -  same as .set_colour, but with american spelling.
    .rainbow <message>                         -  send a message with rainbow colours.
    .pastel <message>                          -  similar to rainbow, but easier to read.
    .alternate [<col1> <col2>] <message>       -  alternate between two colours.
    .fade <col1> <col2> [<times>] <message>    -  fade message between two colours, fade multiple times  -  works with long messages!!
    .custom <message with colours>             -  send a message with custom colour changes. Use "#------" anywhere in the text to change colours.
    .msg <playername> <message>                -  send a private message, the same as "/msg", but with your colours applied to it
    .mw <message>                              -  send a message with a red "MODERATOR WARNING:  ".
    .say <message>                             -  send a plain, white message.

Download: https://github.com/BenjieFiftysix/colour_chat/archive/master.zip
Github: https://github.com/BenjieFiftysix/colour_chat

Code: Select all
- messages can fade through colours multiple times
- short messages don't fade
- .alternate uses users colours instead of red and green if no parameters are given
- moderator warning now gives a warning before sending the message
- comments and code cleaned up a little
Frustrated with formspec strings? Check my formspec editor!

Return to Client-side modding

Who is online

Users browsing this forum: No registered users and 1 guest