Solved Config adding string to list doesn't work

Discussion in 'Plugin Development' started by WhatAaCow, Jul 25, 2013.

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

    WhatAaCow

    Hi,
    i'm trying to add "test" to the rules list, but gives me only a "true" ater "rules:"

    Code:
    Code:java
    1. config.set("rules", config.getStringList("rules").add("test"));


    Config after saveing:
    Code:
    rules: true
     
  2. Offline

    JazzaG

    WhatAaCow

    You're adding the value of add() to the config, not the list itself :S
     
  3. Offline

    WhatAaCow

Thread Status:
Not open for further replies.

Share This Page