How to make sub commands or something like that

Discussion in 'Plugin Development' started by CyrexTosh, Aug 31, 2015.

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

    CyrexTosh

    I want to have my main command for the plugin like /matrix then it comes up with all the commands in the plugin. Then i could do /matrix broadcast or /matrix reload, can someone help me thanks
     
  2. Offline

    teej107

    @CyrexTosh What have you tried? Show us your current code.
     
  3. Offline

    CrystallFTW

  4. Offline

    SuperSniper

    @CyrexTosh
    Code:
    // onCommand(...)
    if(args[0].equalsIgnoreCase("reload") && args.length == 1) {
    // do stuff
    
     
  5. first check the args length, then check the args
     
Thread Status:
Not open for further replies.

Share This Page