New configuration API: get keys

Discussion in 'Plugin Development' started by Uhehesh, Mar 4, 2012.

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


    I used this code before:
    List<String> homes = config.getKeys(world);
    Now I try this code:
    Set<String> homes = config.getKeys(true);
    But this collects only one level of keys.
    How to get keys of "{worldname}"?
  2. Offline

    Sagacious_Zed Bukkit Docs

  3. Offline


    Uhehesh as segacious was highlighting with his linkage you'll need to config.getConfigurationSection(world); first, check if it's null, then if not. .getKeys(boolean) on the section - where boolean is true if you want to get all children nodes too, or false if you only want the top level nodes (generally the one you want).
Thread Status:
Not open for further replies.

Share This Page