Using new sub command registration interface.
I wrote this subcommand interface to assist me in another plugin where I can register and unregister "subcommands" as and when I need to. I have ported it to here to make it easier to manage me subcommands for the /pa command.