mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
Add game name to server status string
This commit is contained in:
parent
22f0c66abb
commit
91c6728eb8
@ -3109,6 +3109,8 @@ std::string Server::getStatusString()
|
||||
os << "# Server: ";
|
||||
// Version
|
||||
os << "version: " << g_version_string;
|
||||
// Game
|
||||
os << " | game: " << (m_gamespec.name.empty() ? m_gamespec.id : m_gamespec.name);
|
||||
// Uptime
|
||||
os << " | uptime: " << duration_to_string((int) m_uptime_counter->get());
|
||||
// Max lag estimate
|
||||
|
Loading…
Reference in New Issue
Block a user