Sub Commands

Discussion in 'Plugin Development' started by nicholasntp, Oct 17, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    nicholasntp

    Hi, I am just beginning to develop a plugin that lots of developers would like to have. I am not releasing any information about it yet, but I have told my friend about it. We are both big computer guys and love this kind of stuff. I am just starting java developing and I love it. I need some ultimate noob like help. I feel so stupid. The problem I'm having, is that I know how to make commands, but not SUB commands. like for example, i know how to make a command like /example, but I don't know how to make a command like /example list page2 or even just /example list. I really need to know how to do this and I can't find how to do it anywhere. PLEASE help me! I use a ton of plugins, and believe me, its possible.

    Thanks in advance!
    ~Nicholasntp
     
  2. Offline

    AinSophAur

    Whatever you type after the commands are just arguments. Its there on the onCommand method itself, in the case of "/example list" you just need to verify that the argument they type at that position is indeed "list" in your case.
     
  3. Offline

    nicholasntp

    Ok. Thanks. Someone else helped to explain it aswell. Thanks for your help!!!
     
Thread Status:
Not open for further replies.

Share This Page