#Comments not working

1 messages · Page 1 of 1 (latest)

vestal mirage
#

Does anyone have an idea why the set commands syntax doesn't work for me?
Code:

command /testyaml:
    trigger:
        load yaml "plugins/skript/scripts/test.yml" as "test"
        if yaml "test" is empty:
            set yaml value "test.hej" from "test" to "hej"
            set comments of yaml node "test.hej" from "test" to "comment"
            save yaml "test"
            set comments of yaml node "test.hej" from "test" to "kommentar"```it sets the yaml value and stuff, it just doesn't add a comment
vestal mirage
#

skript version: 2.6.4

#

skript-yaml version: 1.4

limpid bone
#

you are saving the file, and then adding the comments last. Do the saving last

vestal mirage