pandorabox_custom/userlimit.lua
2019-05-23 21:12:11 +02:00

9 lines
283 B
Lua

minetest.register_privilege("softlimit_bypass", {
description = "can bypass the max player limit"
})
minetest.register_can_bypass_userlimit(function(name, ip)
return minetest.check_player_privs(name, {softlimit_bypass=true}) or minetest.check_player_privs(name, {ban=true})
end)