From 8a3c777c40e2b61c1ba561ba0c60ab8d281886d2 Mon Sep 17 00:00:00 2001 From: Matthew I Date: Wed, 1 Aug 2012 17:17:52 -0400 Subject: Add ban management routines to Lua API Those functions are: * minetest.get_ban_list() * minetest.get_ban_description(ip_or_name) * minetest.ban_player(name) * minetest.unban_player_or_ip(ip_or_name) --- doc/lua_api.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index dea472f3f..8a6ea5dea 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -932,6 +932,12 @@ Server: minetest.request_shutdown() -> request for server shutdown minetest.get_server_status() -> server status string +Bans: +minetest.get_ban_list() -> ban list (same as minetest.get_ban_description("")) +minetest.get_ban_description(ip_or_name) -> ban description (string) +minetest.ban_player(name) -> ban a player +minetest.unban_player_or_ip(name) -> unban player or IP address + Random: minetest.get_connected_players() -> list of ObjectRefs minetest.hash_node_position({x=,y=,z=}) -> 48-bit integer -- cgit v1.2.3