Solved List of values on Config

Discussion in 'Plugin Development' started by rfsantos1996, Dec 2, 2013.

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

    rfsantos1996

    Code:
    Lists:
        List1:
        - name: 'etc'
        - location: 5,2,-5
        - etc: etc
    How can I make this work? The user that defines the "List1", how can I get all "List1" to use config.getString("Lists.List1.name"); for example?
     
  2. Offline

    Sagacious_Zed Bukkit Docs

    rfsantos1996 You cannot for a path for elements of a list.
    List1 is a list of maps, you will need to go through each element of that list.
     
  3. Offline

    rfsantos1996

    Could I use SQLLite for this? Does the plugin user needs to download any Lib or Bukkit already have support for SQLLite?

    Like, admins use /command set (name - List1 equivalent) (etc equivalent) and save that on SQLLite and onEnable() i load all entrys?

    @EDIT:
    I found what I wanted here, getConfig().getConfigurationSection("List").getKeys(boolean)
     
Thread Status:
Not open for further replies.

Share This Page