Teams and Team Names

Discussion in 'Plugin Development' started by FlipSide_Mike, Oct 27, 2014.

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

    FlipSide_Mike

    So I'm working on a plugin to, upon command, such as /team create <team name>, creates a team and updates a sign. I can't figure out how to get user input on the command, I can set the command up, so /team create is there, but how do I make it so the argument after is added into an array list of teams? Thanks
     
  2. Offline

    CraftCreeper6

    FlipSide_Mike
    Create your ArrayList. (Suspecting you already know how to do that...)
    When they issue the command get the args[1] (Suspecting you know how to do this too because you can use args for your "/team create" command.)
    When they issue the command do:
    Code:java
    1. myList.add(args[1]);
     
Thread Status:
Not open for further replies.

Share This Page