mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00: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:
parent
c05228fa6d
commit
40dd03e328
6 changed files with 28 additions and 6 deletions
|
@ -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)`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue