*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:
6
modpol_minetest/orgs/instance.lua
Normal file
6
modpol_minetest/orgs/instance.lua
Normal file
@ -0,0 +1,6 @@
|
||||
--add members to the instance, if they are not already there.
|
||||
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
local p_name = player:get_player_name()
|
||||
modpol.add_member("instance", p_name)
|
||||
end)
|
Reference in New Issue
Block a user