*Reorganized code so that further expansion is possible in a very organized manner.
*modpol.add_member() -- added a check if the member is already a member of that organized *storage -- fixed bug by moving storageref to top of file *added on_joinplayer to add players to instance *moved minetest specific code in init.lua to modpol_minetest, organized in folders. All overrides in one folder, all chatcommands in another, the on_joinplayer in modpol_minetest/orgs/instance.lua
This commit is contained in:
40
modpol_minetest/api.lua
Normal file
40
modpol_minetest/api.lua
Normal file
@ -0,0 +1,40 @@
|
||||
--call all files in this directory
|
||||
|
||||
|
||||
|
||||
-- ===================================================================
|
||||
-- Minetest Specific Overrides of modpol functions
|
||||
-- ===================================================================
|
||||
|
||||
|
||||
local localdir = modpol.get_script_dir() .. "/modpol_minetest"
|
||||
|
||||
--Users
|
||||
dofile (localdir .. "/overrides/users/users.lua")
|
||||
|
||||
--orgs
|
||||
--dofile (localdir .. "/overrides/orgs/orgs.lua")
|
||||
|
||||
--interactions
|
||||
dofile (localdir .. "/overrides/interactions/interactions.lua")
|
||||
|
||||
-- messaging functions
|
||||
-- dofile (localdir .. "/overrides/processes/processes.lua")
|
||||
|
||||
|
||||
|
||||
-- ===================================================================
|
||||
-- Minetest Chatcommands
|
||||
-- ===================================================================
|
||||
dofile (localdir .. "/chatcommands/chatcommands.lua")
|
||||
|
||||
|
||||
-- ===================================================================
|
||||
-- Minetest Specific code
|
||||
-- ===================================================================
|
||||
|
||||
|
||||
-- orgs
|
||||
-- ===================
|
||||
|
||||
dofile (localdir .. "/orgs/instance.lua") --add players to the instance when they join.
|
Reference in New Issue
Block a user