Solved Configuration Iterator

Discussion in 'Plugin Development' started by jdawgerj515, Jun 29, 2013.

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

    jdawgerj515

    Hey guys. So in the plugin I am making I require to list all of the first path names in my .yml like this:
    Code:
    first:
        second:
        second:
    first:
        second:
        second:
    first:
        second:
        second:
    And then aquire every single root pathway string or each one from my example that I labeled first on.

    I was thinking that something like an iterator would do it but the question is how would I do that in this case.
     
  2. Offline

    LaLa

    I don't quite understand exactly what you're asking, do you want to get a list from that example that would look like [first, first, first]?
     
  3. Offline

    jdawgerj515

    Nevermind I solved it.

    What I was trying to do was get the direct children of the yml file and put them in a list.

    I accomplished this with yml.getKeys(false), which I didnt know about until now.
     
Thread Status:
Not open for further replies.

Share This Page