how would i make teams

Discussion in 'Plugin Development' started by ahuby09, Nov 23, 2012.

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

    ahuby09

    im thinking of making a team plugin but i wouldn't a clue how to start it please help
     
  2. Offline

    ZeusAllMighty11

    The search function is pretty handy.


    This has been answered like 50 times this month.
     
    xxCoderForLifexx likes this.
  3. Offline

    gomeow

    There are lots of team plugins. First, you would need to think of an unique idea
     
  4. Offline

    ahuby09

    i have :D

    i just need to know how to make teams

    Please guys ineed this alsohave looked

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 30, 2016
  5. Offline

    gomeow

    Put players into an ArrayList<String>?
     
  6. Offline

    ahuby09

    ?????? what you mean explain
     
  7. Offline

    ZeusAllMighty11

    We mean we're not giving you code, I've thrown out loads of it today. Look at my profile past posts... I explain ArrayLists
     
  8. Offline

    ahuby09

    so i got this ArrayList<Player> p = new ArrayList<Player>(); what do i do with that ?
     
  9. Offline

    gomeow

    First of all, store their names, not the instance of the player.
    Secondly, just add player's name into it...
     
  10. Offline

    fireblast709

    you create a HashMap<String, ArrayList<String>> teams = new HashMap<String, ArrayList<String>>();
    and in this you store teams with an ArrayList<String> of playernames
     
  11. Offline

    gomeow

    Why make it more complex than it should? Just have 2 ArrayLists for 2 teams
     
  12. Offline

    fireblast709

    In case he needs a fixed amount of teams, yes I agree
     
  13. Offline

    ahuby09

    ArrayList<String> list = new ArrayList<String> ()

    }is what ive got now is that orrect also how would o store players name in there
     
  14. Offline

    gomeow

    list.add(String);
     
  15. Offline

    ahuby09

    ArrayList<String> list = new ArrayList<String>()

    ArrayList<String> List = new ArrayList<String> ()
    list.add(String);


    i get a error
     
  16. Offline

    gomeow

    One might think about giving the error?
    Ps. I can't help you again for 5 hours. I have a plane to catch. Bye
     
  17. Offline

    joby890

    Have a good plane ride ;)
     
Thread Status:
Not open for further replies.

Share This Page