instance.lua 200 B

123456
  1. --add members to the instance, if they are not already there.
  2. minetest.register_on_joinplayer(function(player)
  3. local p_name = player:get_player_name()
  4. modpol.instance:add_member(p_name)
  5. end)