X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fscript%2Flua_api%2Fl_server.h;h=06a5ddc24d23a66e229864f0d1722c770d20b314;hb=5e507c9829942c434a6f1ae7a4f3a488c7e50bef;hp=4101f2856a7cdcccb7ab93c06ecccd941b3e6bb6;hpb=142e2d3b74ad886eed83b0fc9d6cfea100dae10a;p=minetest.git diff --git a/src/script/lua_api/l_server.h b/src/script/lua_api/l_server.h index 4101f2856..06a5ddc24 100644 --- a/src/script/lua_api/l_server.h +++ b/src/script/lua_api/l_server.h @@ -24,7 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc., class ModApiServer : public ModApiBase { private: - // request_shutdown() + // request_shutdown([message], [reconnect]) static int l_request_shutdown(lua_State *L); // get_server_status() @@ -46,6 +46,9 @@ class ModApiServer : public ModApiBase { // the returned list is sorted alphabetically for you static int l_get_modnames(lua_State *L); + // print(text) + static int l_print(lua_State *L); + // chat_send_all(text) static int l_chat_send_all(lua_State *L); @@ -88,6 +91,17 @@ class ModApiServer : public ModApiBase { // notify_authentication_modified(name) static int l_notify_authentication_modified(lua_State *L); + // get_last_run_mod() + static int l_get_last_run_mod(lua_State *L); + + // set_last_run_mod(modname) + static int l_set_last_run_mod(lua_State *L); + +#ifndef NDEBUG + // cause_error(type_of_error) + static int l_cause_error(lua_State *L); +#endif + public: static void Initialize(lua_State *L, int top);