summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-09-04 22:08:59 +0200
committerGitHub <noreply@github.com>2017-09-04 22:08:59 +0200
commit40dd03e328ff0ae36338615114cb38879752756e (patch)
tree0ffe5ded06cce82f2b528284c1b5f5aba73f203e /doc
parentc05228fa6d446022cdf675865f9a420c95619313 (diff)
downloadminetest-40dd03e328ff0ae36338615114cb38879752756e.tar.gz
minetest-40dd03e328ff0ae36338615114cb38879752756e.tar.bz2
minetest-40dd03e328ff0ae36338615114cb38879752756e.zip
Implement minetest.register_can_bypass_userlimit (#6369)
* Implement minetest.register_on_userlimit_check This new callback permits to bypass the max_users parameter with new mods condition, based on player name or IP Only one mod needs to permit it. Move core part for builtin privileges checks to builtin
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index a6d02ebb5..ec5a8ff32 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2470,6 +2470,9 @@ Call these functions only at load time!
* Called when `revoker` revokes the priv `priv` from `name`.
* Note that the callback will be called twice if it's done by a player, once with revoker being the player name,
and again with revoker being nil.
+* `minetest.register_can_bypass_userlimit(function(name, ip))`
+ * Called when `name` user connects with `ip`.
+ * Return `true` to by pass the player limit
### Other registration functions
* `minetest.register_chatcommand(cmd, chatcommand definition)`