Implement minetest.register_can_bypass_userlimit (#6369)
authorLoïc Blot <nerzhul@users.noreply.github.com>
Mon, 4 Sep 2017 20:08:59 +0000 (22:08 +0200)
committerGitHub <noreply@github.com>
Mon, 4 Sep 2017 20:08:59 +0000 (22:08 +0200)
commit40dd03e328ff0ae36338615114cb38879752756e
tree0ffe5ded06cce82f2b528284c1b5f5aba73f203e
parentc05228fa6d446022cdf675865f9a420c95619313
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
builtin/game/privileges.lua
builtin/game/register.lua
doc/lua_api.txt
src/network/serverpackethandler.cpp
src/script/cpp_api/s_player.cpp
src/script/cpp_api/s_player.h