Getting keys whiten a key in the config.

Discussion in 'Plugin Development' started by boardinggamer, Dec 3, 2012.

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

    boardinggamer

    Here is an example of the config file.
    Code:
    shopExample:
      Maker: playerExample
      Items:
        WOOD:
          Damage: damageExample
          Amount: 100
          Sell: 10s
          Buy: no
        STONE:
          Damage: damageExample
          Amount: 50
          Sell: no
          Buy: 15s
    How would I get all the Items (WOOD, STONE)? I know getKeys(false) would give me all the "shopExample" keys.
     
  2. getConfigurationSection("shopExample.Items").getKeys()
     
  3. Offline

    boardinggamer

    Thank you
     
Thread Status:
Not open for further replies.

Share This Page