This commit is contained in:
AFCMS 2021-12-27 23:25:20 +01:00
parent c7f808a2ce
commit 201ee1ac81
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
mcl_commands.register_basic_command("person", {
description = S("testing command"),
def = {
{type="target", name="t"},
{type="subcommand", subcommands = {
{name = "set",
{type="int", name="age", params={min=0,max=100}},
{type="choice", name="sexe", params={values={"man", "woman"}}},
execute = function(params, subcommand_params)
return true, params.t..":"..subcommand_params.age..":"..subcommand_params.sexe
end,
}
}},
},
})