aboutsummaryrefslogtreecommitdiff
path: root/minetest.conf.example
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2019-02-09 18:33:31 +0100
committerSmallJoker <mk939@ymail.com>2019-02-09 18:33:31 +0100
commitb7e1bca28c2c551198d284473c22b0293139163d (patch)
tree870ceb70e34b93093ebb01de66ec88aba2fe536b /minetest.conf.example
parentf5bdc04ab5b47bd094ba0ced5f086e8fe6b12298 (diff)
downloadminetest-b7e1bca28c2c551198d284473c22b0293139163d.tar.gz
minetest-b7e1bca28c2c551198d284473c22b0293139163d.tar.bz2
minetest-b7e1bca28c2c551198d284473c22b0293139163d.zip
numeric: Fix clang, broken since d5456da
Diffstat (limited to 'minetest.conf.example')
0 files changed, 0 insertions, 0 deletions
106'>106 107
/*
Minetest
Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#ifndef L_SERVER_H_
#define L_SERVER_H_

#include "lua_api/l_base.h"

class ModApiServer : public ModApiBase {
private:
	// request_shutdown([message], [reconnect])
	static int l_request_shutdown(lua_State *L);

	// get_server_status()
	static int l_get_server_status(lua_State *L);

	// get_worldpath()
	static int l_get_worldpath(lua_State *L);

	// is_singleplayer()
	static int l_is_singleplayer(lua_State *L);

	// get_current_modname()
	static int l_get_current_modname(lua_State *L);

	// get_modpath(modname)
	static int l_get_modpath(lua_State *L);

	// get_modnames()
	// the returned list is sorted alphabetically for you
	static int l_get_modnames(lua_State *L);

	// chat_send_all(text)
	static int l_chat_send_all(lua_State *L);

	// chat_send_player(name, text)
	static int l_chat_send_player(lua_State *L);