api.lua 1.2 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. dofile (localdir .. "/overrides/users.lua")
  9. -- ===================================================================
  10. -- Minetest Chatcommands
  11. -- ===================================================================
  12. dofile (localdir .. "/chatcommands.lua")
  13. -- ===================================================================
  14. -- Minetest-specific modules
  15. -- ===================================================================
  16. dofile (localdir .. "/modules/priv_to_org.lua")
  17. -- ===================================================================
  18. -- Minetest-specific code
  19. -- ===================================================================
  20. --add members to the instance, if they are not already there.
  21. minetest.register_on_joinplayer(function(player)
  22. local p_name = player:get_player_name()
  23. modpol.instance:add_member(p_name)
  24. end)