Add an ArrayList of Player names to config with a boolean value beside each one

Discussion in 'Plugin Development' started by nrs23, Jan 6, 2014.

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

    nrs23

    Like the title says how would I add an ArrayList of Player names to config with a boolean value beside each one.

    I know how to do individual players but not a clue for an array of strings
     
  2. Offline

    leimekiller

    What do you mean by "a boolean beside each one"?
     
  3. Offline

    Codex Arcanum

    for(Player p : arraylistofplayers){
    this.getConfig().set("NodeThatContainsTheListOfPlayers." + p.getName(), true);
    }
     
Thread Status:
Not open for further replies.

Share This Page