how do I execute a command and is there a way to catch an Unknown Command error. My reasoning is that I have a remote and I need it to be able to dispatch commands and respond with the text you normally get from it.
Any unknown commands get chucked into the usage statement before they reach onCommand. However, there are several ways to dispatch a command by a third, non-CommandSender, party. See here.