mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Add game name to server status string
This commit is contained in:
parent
22f0c66abb
commit
91c6728eb8
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue