How do I load tree/indexes from a YAML file in Bukkit? This is the file I want to grab all the values from:
groups:
myGroup1:
prefix: [test]
permissions:
- test
myGroup2:
prefix: [test2]
permissions:
- test2
This YAML file is a configuration, where users can add as many groups as they want so it is impossible to collect things like YamlConfiguration.getString("groups.myGroup1.[..])")
.
I need to have list of all things in "groups:", so it should look like
YamlConfiguration.getString("groups.%groupName%.[..])")
.
Does someone know how to collect all the things after "groups:" (It can just be the group names) Thanks for the help!