Lists and/with Configs?

Discussion in 'Plugin Development' started by DrAgonmoray, Aug 19, 2011.

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

    DrAgonmoray

    This is really frustrating me.
    I need to use config.getNodeList() and assign that to a variable for later use. I've been trying everything I could think of, but I cannot figure out how to assign it to a variable.
    I figured it would be this:
    Code:
    List<String> ls = config.getNodeList("invs", null);
    however I get an error.
    And yes, config IS a proper loaded config, and invs is defined.
    Could anybody help me with this simple problem?
     
  2. Offline

    bergerkiller

    This one is pretty simple to solve in Eclipse.
    I typed:
    And it showed me exactly what was returned:
    In other words:
    Code:
    List<ConfigurationNode> nodes = config.getNodeList(...);
     
  3. Offline

    DrAgonmoray

    Eclipse shows that as an error. It wants me to remove the type arguments

    Oh fail. i imported java.awt instead of java.util

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  4. Offline

    IcySeal

    also did you use, getStringList, not getNodeList
     
Thread Status:
Not open for further replies.

Share This Page