17.03.2016, 19:44
Nice! Thanks a lot for this. While we're on the subject, would it be able to add default handler aswell?
The empty handler is only one part of what I'm trying to achieve. Let's say the command "/v" has two options "list" and "get". So if the user enters only "/v", the empty handler gets called and that's great. But what if the user enters "/v somethingthatsnotdefined". This is what I was trying to achieve with my low-priority "/v String.class" command.
The empty handler is only one part of what I'm trying to achieve. Let's say the command "/v" has two options "list" and "get". So if the user enters only "/v", the empty handler gets called and that's great. But what if the user enters "/v somethingthatsnotdefined". This is what I was trying to achieve with my low-priority "/v String.class" command.