Posts: 31
Threads: 4
Joined: Nov 2014
Thanks: 2
Given 1 thank(s) in 1 post(s)
I am modifying everything for usage of "info.lua".
My commands structure is like only ONE main command:
- /home
and then few fixed sub commands but also the argument[2] could be a paramater for the main command:
Sample:
- /home => will port you to default home
- /home help => will display help
- /home [SOMEWORD] => will port you to the home called SOMEWORD
It seems this is not possible with the info.lua commands structure, cause i have to use one Handler already for the main command, so the subcommands are never reached?! Am i right, or is there another way?
Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1075 thank(s) in 852 post(s)
Hm, I thought it was possible to do that, but obviously it's not. So either you change your command syntax (use "/home goto <name>" instead of "/home <name>") or you will really have to implement the entire handling yourself. You should still be able to use the Info.lua for documenting the subcommands.