Grant new player faction user priv.

This commit is contained in:
Coder12a 2018-10-12 14:30:58 -05:00
parent b29bdd35f0
commit 4113d5bab4

View File

@ -1016,5 +1016,14 @@ minetest.is_protected = function(pos, player)
end end
end end
function grant_new_player_faction_user_priv(player)
local name = player.name
local privs = minetest.get_player_privs(name)
privs.faction_user = true
minetest.set_player_privs(name, privs)
end
register_on_newplayer(grant_new_player_faction_user_priv)
hudUpdate() hudUpdate()
factionUpdate() factionUpdate()