forked from VoxeLibre/VoxeLibre
stuff
This commit is contained in:
parent
c7f808a2ce
commit
201ee1ac81
|
@ -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,
|
||||
}
|
||||
}},
|
||||
},
|
||||
})
|
Loading…
Reference in New Issue