Help with Multiple Commands

Discussion in 'Plugin Development' started by Nedinator, Jan 25, 2015.

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

    Nedinator

    Hey everyone!

    So I've been working on adding this feature to iWarn FOREVER..

    I've looked up plenty of tutorials that just don't seem to solve the problem. I'm trying to set up the "setwarn" command. I have everything in one class. I know that's not smart but I really don't mind it.

    Here's what I have that is not working.

    else if(cmd.getName().equalsIgnoreCase("setwarn")){

    I have everything in the plugin.yml set up fine... But it gives that "unknown command" error whenever I try to use the command.

    -Neal
     
  2. Offline

    ArticleZero

    Can you post your full code and plugin.yml?
     
  3. Just get rid of the else and just use if.
     
  4. Offline

    Nedinator

    Nvm, friend helped and it is fixed. Sorry!
     
Thread Status:
Not open for further replies.

Share This Page