pandorabox_custom/userlimit.lua

9 lines
283 B
Lua
Raw Normal View History

2019-05-22 15:07:23 +02:00
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})
2019-05-22 15:07:23 +02:00
end)