minetest.conf wrote:motd = Hello and welcome to my server!
The currenty implementation of MOTD (Message of the day) is quite poor and the message itself is often not anymore in the player's viewport when they connect to a server. My suggestion is to move it onto the sever connection/media loading screen, which would bring two benefits:
1. Everyone can see the MOTD
2.The loading screen is less monotone
I'm neither a core dev nor a C++ capable programmer, but I think this diagram should explain my idea to everyone:
- "Connecting to server"
- (New:) Server responds with message of the day
- "Media" etc.

The message could be read statically from minetest.conf (known motd setting) or created dynamically by a script.
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
minetest.register_on_prejoinplayer(function(name, ip)
local player = minetest.get_player_by_name(name)
player:set_motd("Welcome, " .. name .. "! You earned 0$ since your last visit.")
end)
I'm not sure how many engine changs this would require, but I think players would benefit from it.