user7353558
user7353558

Reputation: 141

Minecraft Bukkit 1.8 saving list into config.yml

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

Answers (1)

Frelling
Frelling

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

Related Questions