Added modpol.menu() functions modpol and modpol_minetest. Not sure if latter works.

This commit is contained in:
Nathan Schneider
2021-03-14 22:51:53 -06:00
parent 8faca7931a
commit ac6bae3f85
5 changed files with 51 additions and 7 deletions

View File

@ -7,6 +7,18 @@ local regchat -- Chat-command registration function
regchat = minetest.register_chatcommand
-- ===================================================================
-- /menu
-- Presents a menu of options to users
minetest.register_chatcommand(
"menu", {
privs = {},
func = function(user)
local result = modpol.menu(user)
return true, result
end,
})
-- ===================================================================
-- /addorg /add_org
-- This code defines a chat command which creates a new