Questions about getting players in arraylist.

Discussion in 'Plugin Development' started by theking958_IGN, Mar 30, 2014.

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

    theking958_IGN

    I am making a board game plugin. i have an array list of players in the game.

    Questions:
    1. How do i find the first player on the arraylist.
    2. How do i find the player on the arraylist after a certain player.

    I am using this to make it so the turns go in a cirlce.
     
  2. Offline

    EnderTroll68

    theking958_IGN
    1:
    list.get(0);


    2:
    int num = list.indexOf(player) + 1;
    list.get(num);
     
Thread Status:
Not open for further replies.

Share This Page