Page 1 of 1

Chat & Formspec Formatting

PostPosted: Mon Jul 04, 2016 05:10
by octacian
I've got several questions about manipulated colour and server messages displayed via the chat through mods, as well as formspec text.

Can/how can I make chat messages bold or use colours? I'd really like this for my mod (servertools) which implements a chat filter for which I'd like more obvious warnings.

The server sends some messages to the chat by default (such as Kicked ...), how can I replace these with my own custom messages? I always would like to change the server welcome message. If needed I can find both of these by looking at other mods, but if someone knows off hand that would probably be quicker.

Is there a formspec element that allows showing plain text rather than textareas and such? I can use a table, and it might even work better, but I'd like to know anyway for future reference.

How can I update the same formspec to contain new data?

Re: Chat & Formspec Formatting

PostPosted: Mon Jul 04, 2016 12:16
by KCoombes
endev15 wrote:-snip-
I always would like to change the server welcome message.
-snip-


from minetest.config.example;

# Message of the day displayed to players connecting.
# type: string
# motd =