Hey, So I wondering how you can add an array list in the conifg file using .getConfig().addDefault()? Thank you for helping - Creatos
You can iterate over the items in the list if they're strings or something that would uniquely identify them such as a uuid then save them to the config as individual values, or one string separated by commas, or if the items are serializable you can write them in and reload them directly. It kind of depends on what type of object is in the list you're trying to save. Sent from my iPhone using Tapatalk
Then a simple for loop that writes in the configuration as a string will suffice. for(string name:yourList) config.addDefault("Admins",name); Or another solution config.addDefault("Admins",list); Sent from my iPhone using Tapatalk