mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add minetest.get_server_uptime() function to Lua API (#4702)
Add minetest.get_server_uptime() function to Lua API
This commit is contained in:
parent
7607b0ac20
commit
bf315c05f1
4 changed files with 15 additions and 0 deletions
|
@ -216,6 +216,7 @@ public:
|
|||
|
||||
// Connection must be locked when called
|
||||
std::wstring getStatusString();
|
||||
inline double getUptime() const { return m_uptime.m_value; }
|
||||
|
||||
// read shutdown state
|
||||
inline bool getShutdownRequested() const { return m_shutdown_requested; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue