mirror of
https://github.com/minetest/minetest.git
synced 2025-07-05 01:10:22 +02:00
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
This commit is contained in:
@ -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)`
|
||||
|
Reference in New Issue
Block a user