Getting Values from a string list

Discussion in 'Plugin Development' started by Gopaintman, Nov 4, 2013.

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

    Gopaintman

    Alright so I know how to get a string list.
    However I always get a null string list if I add values to the elements in the list like this.
    Code:
    List:
      - yolo: swag
      - lol: lul
    Any idea on how to have get it to grab the string list?
     
  2. Offline

    Warreo

    Just like this:

    Code:java
    1. List<String> messages = this.getConfig().getStringList("List");


    and your list in this case would contain 2 elements, "yolo: swag" and "lol: lul". :)
     
  3. Offline

    Gopaintman

    I've got that, however when I do that, it just returns null. Maybe I'm just doing something wrong.
     
Thread Status:
Not open for further replies.

Share This Page