]> git.lizzy.rs Git - minetest.git/blobdiff - src/script/lua_api/l_server.h
Add server side ncurses terminal
[minetest.git] / src / script / lua_api / l_server.h
index 21f30040063e1411493412d3401975804f55178a..06a5ddc24d23a66e229864f0d1722c770d20b314 100644 (file)
@@ -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);
 
@@ -67,6 +70,9 @@ class ModApiServer : public ModApiBase {
        // get_player_ip()
        static int l_get_player_ip(lua_State *L);
 
+       // get_player_information()
+       static int l_get_player_information(lua_State *L);
+
        // get_ban_list()
        static int l_get_ban_list(lua_State *L);
 
@@ -79,9 +85,23 @@ class ModApiServer : public ModApiBase {
        // unban_player_or_ip()
        static int l_unban_player_or_ip(lua_State *L);
 
+       // kick_player(name, [message]) -> success
+       static int l_kick_player(lua_State *L);
+
        // 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);