Configuration: Entries at path

Discussion in 'Plugin Development' started by TupidaMC, May 26, 2014.

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

    TupidaMC

    Hi guys.
    How can I get every path of an other path. I don't really know how I should describe it so here you can see an example:

    Code:
    kits:
      archer:
        permission:
        preis: 50
        id: 'archer'
        name: '&4Archer'
        lore:
        - '&bDu startest mit Pfeil und Bogen'
        - '&aKlick um es zu benutzen!'
        item:
          #itemstack 
      example:
        permission:
        preis: 60
        id: 'archer'
        name: '&4Archer'
        lore:
        - '&bDu startest mit Pfeil und Bogen'
        - '&aKlick um es zu benutzen!'
        item:
          #itemstack
    This is the configuration and I want to get everything that is set in "kits". In this example it would be "archer" & "example". But I want the user to add as many kits as he wants so I will not know the names of the kits.

    I hope I could explain it good enough so you can understand my problem. Thank you!
     
  2. Offline

    mrkirby153

    TupidaMC

    Config.getConfigurationSection("kits").getKeys(false);
     
  3. Offline

    TupidaMC

Thread Status:
Not open for further replies.

Share This Page