Solved Assigning Local Array to Player

Discussion in 'Plugin Development' started by Crack498, Mar 17, 2015.

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

    Crack498

    I want an array that belongs to a player, so when I have the player I can access the player's array.
    If it's possible, how do I do it?
    If it's not possible, how can I make something like that?
     
  2. Offline

    TheEntropy

    @Crack498 Use a map:

    Code:
    Map<String, ArrayList<String>> playerMap = new HashMap<String, ArrayList<String>>();
    
     
  3. Use UUID instead of String
     
  4. Offline

    Crack498

    Ok thanks, worked
     
Thread Status:
Not open for further replies.

Share This Page