[RESOLVED] Configuration keys question

Discussion in 'Plugin Development' started by Windwaker, Dec 17, 2011.

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

    Windwaker

    Heya,
    So quick question to anyone who can answer it...

    If I have...
    Code:
    foo:
      bar:
        baz:
      cake:
        lie:
    Say I only want to get "bar and cake" as a string, but not "baz or lie" and bar or cake can be named something different. I'm aware of getKeys() but unless I'm missing something won't that return all of the keys in a set? Thanks :)
     
  2. Since the new configuration getKeys takes a boolean as a parameter determining wether it should include sub-nodes or not.

    so configSecThatPointsToFoo.getKeys(false) would return only "bar" and "cake".
     
  3. Offline

    Windwaker

    Ah, I knew it would be something simple like that. Thanks :)
     
Thread Status:
Not open for further replies.

Share This Page