Config getNodes()

Discussion in 'Plugin Development' started by SirHedgehog, Apr 19, 2011.

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

    SirHedgehog

    Hi,

    Having trouble using the Bukkit configuration.getNodes() call. It seems to return nothing at all. Here is the config segment:

    Code:
    Transmutation:
        STONE: 1
        LOG: 1
        COBBLESTONE: 2
        DIRT: 4
        GRASS: 4
        WOODEN: 4
    and here is the code

    Code:
    Map<String, ConfigurationNode> nodes = config.getNodes("Transmutation");
    
    "nodes" is always empty.

    Ah, got it:

    Code:
    List<String> keys = config.getKeys("Transmutation");
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
Thread Status:
Not open for further replies.

Share This Page