Page 1 of 1

[mod][20MM] Coloured chat for players [1.0][chat_c]

PostPosted: Wed Mar 01, 2017 06:40
by wilkgr76

What is it?


chat_c is a small mod allowing players to colour their chat message by prefixing their message with a code.

What is it useful for?


If a moderator or admin needs to make their message stand out, colour is the way to go. Besides, colours also often have a meaning - common examples are that red is wrong or constitutes a warning, and that green is right

How do I use it?


Once the mod is installed, simply grant yourself the chat_c priv. You will need to prefix your message with a code and a space, like so:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
b Thank you wilkgr & shivajiva

which will result in this:

<you> Thank you wilkgr & shivajiva

How do I install it?


Fair point. Download it from Github and extract it. Remove the "-master" part from the folder name

Are there any dependencies?


Having default* is probably a plus.

What is it licensed under?


It is licensed under the AGPLv3, meaning that if you modify it to use on your server, you must release the source code.

Are there any other contributors?


Yes. This mod was made with the help of shivajiva. Also thanks to taikedz

What is a list of all the colour codes?


The full list is here: List

What is it's current version?


Version 1.0

Where do I download it?


https://github.com/wilkgr76/chat_c


*FYI: default is bundled with minetest.

Re: [mod][20MM] Coloured chat for players [1.0][chat_c]

PostPosted: Thu Mar 02, 2017 18:22
by azekill_DIABLO
super! but if i start a message by "a" like in "a pig is in my house" it world be colored, no? i vote for a little tag addition something like ~a~ or <a>

Re: [mod][20MM] Coloured chat for players [1.0][chat_c]

PostPosted: Thu Mar 02, 2017 18:35
by Krock
I'd rather prefer commands instead of prefixes, such as /green /yellow and the text behind it.
FYI: You can also create these messages manually by copy&paste the ESC ASCII character into the chat, in the following format: [ESC](c@#FF0000) Hello world message

Re: [mod][20MM] Coloured chat for players [1.0][chat_c]

PostPosted: Fri Mar 03, 2017 00:41
by wilkgr76
Krock wrote:I'd rather prefer commands instead of prefixes, such as /green /yellow and the text behind it.
FYI: You can also create these messages manually by copy&paste the ESC ASCII character into the chat, in the following format: [ESC](c@#FF0000) Hello world message

That was what I had originally done (see the 'legacy code' commit on Github) before I was persuaded to do it otherwise - this approach is more mobile friendly.

azekill_DIABLO wrote:super! but if i start a message by "a" like in "a pig is in my house" it world be colored, no? i vote for a little tag addition something like ~a~ or <a>

I honestly couldn't think of a a reason why you would have 't' as a free-standing letter, but, as with commands, if you add a space in front of it, the mod won't pick it up. Or you could, you know, just not give the chat_c priv to normal players. Many moderators use two separate accounts.

Re: [mod][20MM] Coloured chat for players [1.0][chat_c]

PostPosted: Fri Mar 03, 2017 19:42
by azekill_DIABLO
ok then, t hanks