2020-12-05 20:03:01 -08:00
|
|
|
-- CHAT COMMANDS
|
2020-12-06 10:57:53 -08:00
|
|
|
if adv_core.setting("enable_chat_commands",true) then
|
2020-12-05 20:03:01 -08:00
|
|
|
|
|
|
|
minetest.register_chatcommand("make_shop", {
|
|
|
|
params = "<name> <privilege>",
|
|
|
|
|
2020-12-06 10:57:53 -08:00
|
|
|
description = "Generate an Adventure Shop Node",
|
2020-12-05 20:03:01 -08:00
|
|
|
|
|
|
|
privs = {interact = true},
|
|
|
|
|
|
|
|
func = function(name)
|
|
|
|
return true, "You said"
|
|
|
|
end,
|
|
|
|
})
|
2020-12-06 10:57:53 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--Priv Specific API commands
|
2020-12-05 20:03:01 -08:00
|
|
|
end
|