Reputation: 141
I have an arraylist of string-arrays and I want to save that into a config.yml. So how can I do that? I have absolutely no plan, how to save the list into the config.yml and read it out.
Upvotes: 1
Views: 814
Reputation: 3507
You should read Bukkit's Configuration API Reference, which will introduce you to getting and setting configuration items via YML files. Between that and this older post - Bukkit's Yaml Configuration Tutorial - you should be able to get a good handle on how to best approach your task. Or for a more generic approach, consider looking at Somov's SnakeYAML Documentation, which is the library used by Bukkit/Spigot.
Upvotes: 1