Adding Multiple Properties to a String List in the Config

Discussion in 'Plugin Development' started by eth1029, Apr 16, 2018.

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

    eth1029

    I want to format my config file like this:
    Code:
    items:
    - value1: 'hello'
      value2: 'goodbye'
    - value1: 'hi'
      value2: ' bye'
    And I cannot figure out how to make a value in a string list have multiples properties (value1 and value2), which belong to that list item.
     
    Last edited: Apr 16, 2018
  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    MightyOne

    What have you tried yet? : D
     
  4. Offline

    eth1029

    When I tried to set the default configure vale, I wasn't sure where to start. I basically need to config.set("items.?.value1", "hello"). I'm not sure how to define a property path that selects an item in a list.
     
Thread Status:
Not open for further replies.

Share This Page