Solved Multiple command arguments?

Discussion in 'Plugin Development' started by JBoss925, Feb 8, 2014.

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

    JBoss925

    Hey guys,
    JBoss925 here and I am new to bukkit coding. Today is my 2nd day. I've learned a few methods and now I am moving on to commands. I am having trouble with the onCommand() method. I coded a small plugin where when a person types /blue or /red it assigns them a lapis block or a redstone block as their helmet and it tells them they joined a team. /red is not working.
    Here's my code so far:

    http://pastebin.com/LCkW0CiL

    All I want is for when someone types /red they join the red team. When I type it, it registers it as a command but does nothing. /blue works. Thanks for any help guys.[sheep]
     
  2. Offline

    JWhy

    Please check whether you registered both commands in your plugins' plugin.yml, if you're unsure post the file on pastebin.com
     
  3. Offline

    Necrodoom

    Moved to correct section.
     
  4. Offline

    JBoss925

    I did. I figured it out though. I had previously tried to return true but as it turned out I hadn't indented it correctly to the if block and once I did that it read it correctly. Thanks though.
     
Thread Status:
Not open for further replies.

Share This Page