Solved getStringList() and what should go there?

Discussion in 'Plugin Development' started by dibujaron, Nov 8, 2012.

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

    dibujaron

    so i'm working on a plugin with a config. the config needs to store a value currentUsersList, which is a strings list. my question is this: how would one go about formatting that in yaml?

    In the config, I have tried:
    currentUsersList: "Notch","Jeb_"

    currentUsersList: ["Notch", "Jeb_"]

    I know it's one of those things that is really simple, but I can't figure it out. I looked all over the configuration API reference but no luck. someone help please? thank you!
     
  2. Offline

    fireblast709

    A list of Strings in YAML:
    Code:
    list:
      - first item
      - second item
    
     
  3. Offline

    dibujaron

    ah! that's what it looks like. thanks!
     
Thread Status:
Not open for further replies.

Share This Page