aboutsummaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorBrandon <brandon@bremaweb.com>2016-11-02 11:36:58 -0500
committerAuke Kok <sofar+github@foo-projects.org>2016-11-02 09:36:58 -0700
commitbf315c05f17549d37d7b4c4bd7938df0b5b32c5a (patch)
treec04f306861d9cee09b0e108e46a6036763526e0c /doc/lua_api.txt
parent7607b0ac2065a50a9b68b22909ab40738f2d08e8 (diff)
downloadminetest-bf315c05f17549d37d7b4c4bd7938df0b5b32c5a.tar.gz
minetest-bf315c05f17549d37d7b4c4bd7938df0b5b32c5a.tar.bz2
minetest-bf315c05f17549d37d7b4c4bd7938df0b5b32c5a.zip
Add minetest.get_server_uptime() function to Lua API (#4702)
Add minetest.get_server_uptime() function to Lua API
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 497864fac..119e69f6f 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2448,6 +2448,7 @@ These functions return the leftover itemstack.
* `minetest.request_shutdown([message],[reconnect])`: request for server shutdown. Will display `message` to clients,
and `reconnect` == true displays a reconnect button.
* `minetest.get_server_status()`: returns server status string
+* `minetest.get_server_uptime()`: returns the server uptime in seconds
### Bans
* `minetest.get_ban_list()`: returns the ban list (same as `minetest.get_ban_description("")`)