List in config file

Discussion in 'Plugin Development' started by 0verFull, Apr 15, 2015.

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

    0verFull

    Hi guys and girls,

    How to do a list in the config file?

    Thanks for any atention.
     
  2. Offline

    nverdier

    Code:
    path-of-list:
    - The first Entry
    - The second Entry
    etc, etc
    @0verFull
     
  3. Offline

    mine-care

    Code-wise to get a list from config (it has to be in the form provided by @nverdier) you can use the FileConfiguration method getStringList("path-of-list"); and to set a list, you can use method set("path-to-list",ListImplementation<String>); where "ListImplementation<String>" is the list you wana save.
     
  4. Offline

    0verFull

    Thank you all
     
  5. Offline

    nverdier

Thread Status:
Not open for further replies.

Share This Page