Added minetest modules and am stuck on interactions and module flow

This commit is contained in:
Nathan Schneider
2021-12-18 17:53:49 -07:00
parent 51d5e404e9
commit af6e639e27
9 changed files with 156 additions and 22 deletions

View File

@ -176,6 +176,12 @@ minetest.register_on_player_receive_fields(function (player, formname, fields)
if formname == "modpol:org_dashboard" then
local pname = player:get_player_name()
local org = modpol.orgs.get_org(_contexts[pname].current_org)
-- just confirm the org still exists:
if not org then
modpol.interactions.message(pname, "Org no longer exists")
modpol.interactions.dashboard(pname)
return end
-- okay, onward
if nil then
elseif fields.join then
org:add_member(pname)