Configuration List

Discussion in 'Plugin Development' started by 8thDimension, Oct 23, 2011.

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

    8thDimension

    I have started developing plugins again, and I recently just learned about the new configuration API changes. Now, I have been able to set up a config file, what I need now is to make a configuration list... I'm getting some error like

    "The expression of type List needs unchecked conversion to conform to List<String>"

    So I'm sort of confused. Can someone explain to me how it's supposed to work?

    Code:
    
    		Test = config.getList("Test");
    
    That's what my code is as of right now.. Amidoinitwrong?
     
  2. Offline

    thehutch

    Code:
    getConfig().set("path.to.list", new ArrayList<String>());
    
     
  3. Offline

    Sagacious_Zed Bukkit Docs

    Eclipse is complaining because it does not know what kind of list it is. So it tells you that you have an unchecked list.
     
Thread Status:
Not open for further replies.

Share This Page