aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMatthew I <matttpt@gmail.com>2012-08-01 17:17:52 -0400
committerPerttu Ahola <celeron55@gmail.com>2012-08-12 16:45:58 +0300
commit8a3c777c40e2b61c1ba561ba0c60ab8d281886d2 (patch)
treef1a23befa8851ce24f521250ee99b99bb0d88d29 /doc
parent548da26ddc1e38bffbc05c5577fe9a60476f8e71 (diff)
downloadminetest-8a3c777c40e2b61c1ba561ba0c60ab8d281886d2.tar.gz
minetest-8a3c777c40e2b61c1ba561ba0c60ab8d281886d2.tar.bz2
minetest-8a3c777c40e2b61c1ba561ba0c60ab8d281886d2.zip
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)
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt6
1 files changed, 6 insertions, 0 deletions
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