From 40dd03e328ff0ae36338615114cb38879752756e Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Mon, 4 Sep 2017 22:08:59 +0200 Subject: 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 --- doc/lua_api.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/lua_api.txt') 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)` -- cgit v1.2.3