mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Make the server status message customizable (#7357)
Remove now redundant setting show_statusline_on_connect Improve documentation of `minetest.get_server_status`
This commit is contained in:
parent
7d20ff47d7
commit
6f22d14206
7 changed files with 18 additions and 15 deletions
|
@ -1059,11 +1059,6 @@ PlayerSAO* Server::StageTwoClientInit(session_t peer_id)
|
|||
// Send Breath
|
||||
SendPlayerBreath(playersao);
|
||||
|
||||
// Note things in chat if not in simple singleplayer mode
|
||||
if (!m_simple_singleplayer_mode && g_settings->getBool("show_statusline_on_connect")) {
|
||||
// Send information about server to player in chat
|
||||
SendChatMessage(peer_id, ChatMessage(CHATMESSAGE_TYPE_SYSTEM, getStatusString()));
|
||||
}
|
||||
Address addr = getPeerAddress(player->getPeerId());
|
||||
std::string ip_str = addr.serializeString();
|
||||
actionstream<<player->getName() <<" [" << ip_str << "] joins game. " << std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue