Merge branch 'master' of github.com:pandorabox-io/pandorabox_custom

This commit is contained in:
Thomas Rudin 2018-10-04 14:45:53 +02:00
commit e414bfc1c7
2 changed files with 13 additions and 0 deletions

View File

@ -4,6 +4,7 @@ pandorabox = {
}
dofile(MP.."/forum.lua")
dofile(MP.."/players.lua")
pandorabox.http = nil

12
players.lua Normal file
View File

@ -0,0 +1,12 @@
minetest.register_privilege("server_softfull_join", {
description = "Can join the server if soft-limit is reached",
give_to_singleplayer= false,
})
minetest.register_on_prejoinplayer(function(name, ip)
--local privs = minetest.get_player_privs(name)
--return minetest.serialize(privs)
--TODO: reject new players if server full
end)