mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03: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: ";
|
os << "# Server: ";
|
||||||
// Version
|
// Version
|
||||||
os << "version: " << g_version_string;
|
os << "version: " << g_version_string;
|
||||||
|
// Game
|
||||||
|
os << " | game: " << (m_gamespec.name.empty() ? m_gamespec.id : m_gamespec.name);
|
||||||
// Uptime
|
// Uptime
|
||||||
os << " | uptime: " << duration_to_string((int) m_uptime_counter->get());
|
os << " | uptime: " << duration_to_string((int) m_uptime_counter->get());
|
||||||
// Max lag estimate
|
// Max lag estimate
|
||||||
|
Loading…
Reference in New Issue
Block a user