How do I get a sections in .yml file ?

Discussion in 'Plugin Development' started by DerPascal007, Feb 21, 2021.

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

    DerPascal007

    Hey, I have the following .yml structure:

    uuid_1:
    name:
    ...​
    uuid_2:
    name:
    ...​

    How do I get a list of all uuids ?
    do I have to use config.getkeys() or something?
    Thanks in advance :)
     
  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    Strahan

    I'd also recommend you move those under a parent key. If in the future you decide you want to have other config options in the file, it will hose up things when you just want to iterate users.
     
Thread Status:
Not open for further replies.

Share This Page