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)
|
2019-05-23 21:12:11 +02:00
|
|
|
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)
|