api.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. --- Script for loading Minetest files
  2. -- ===================================================================
  3. -- Minetest Specific Overrides of modpol functions
  4. -- ===================================================================
  5. local localdir = minetest.get_modpath("modpol") .. "/modpol_minetest"
  6. --overrides
  7. dofile (localdir .. "/overrides/interactions.lua")
  8. -- ===================================================================
  9. -- Minetest Chatcommands
  10. -- ===================================================================
  11. dofile (localdir .. "/chatcommands.lua")
  12. -- ===================================================================
  13. -- Minetest-specific modules
  14. -- ===================================================================
  15. dofile (localdir .. "/modules/priv_to_org.lua")
  16. -- ===================================================================
  17. -- Minetest-specific code
  18. -- ===================================================================
  19. --add members to the instance, if they are not already there.
  20. minetest.register_on_joinplayer(function(player)
  21. local p_name = player:get_player_name()
  22. modpol.instance:add_member(p_name)
  23. end)