Merge branch 'master' of github.com:pandorabox-io/pandorabox_custom
This commit is contained in:
commit
e414bfc1c7
1
init.lua
1
init.lua
@ -4,6 +4,7 @@ pandorabox = {
|
||||
}
|
||||
|
||||
dofile(MP.."/forum.lua")
|
||||
dofile(MP.."/players.lua")
|
||||
|
||||
pandorabox.http = nil
|
||||
|
||||
|
12
players.lua
Normal file
12
players.lua
Normal 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)
|
Loading…
x
Reference in New Issue
Block a user