CONFIG - Get Keys?

Discussion in 'Plugin Development' started by NeoSilky, Nov 3, 2011.

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

    NeoSilky

    So you used to be able to do:

    Code:
    config.getKeys("Blocks");
    
    now it just asks for the boolean? What has replaced it? :)
     
  2. config.getConfigurationSection("Blocks").getKeys(false);
     
  3. Offline

    Lolmewn

    But if you want the first ones, replace "Blocks" with "". (at least, that works for me.)
     
  4. If you mean the root nodes with "the first ones", you can just leave out getConfigurationSection and just call config.getKeys, as the Configuration is the ConfigurationSection refering to its root.
     
  5. Offline

    Lolmewn

    Oh, right.
    Ah well :p
     
  6. Offline

    NeoSilky

    Cheers peoples :)
     
Thread Status:
Not open for further replies.

Share This Page