Sashie / skript-yaml

The proper way to do yaml in skript
MIT License
32 stars 22 forks source link

BUG #27

Closed LowScarlet closed 3 years ago

LowScarlet commented 3 years ago

This my yml

command-list:
    member:
        '1': 'loginsystem'
        '2': 'login'
        '3': 'logout'
        '4': 'register'
        '5': 'changepassword'
    op:
        '1': 'loginsystem'
        '2': 'login'
        '3': 'logout'
        '4': 'register'
        '5': 'changepassword'
        '6': 'forcelogin'

This my code

on load:
    print warning "[{@base.name}] Updates data into permanent variables for fast writing!" to console
    # Set cache list command
    delete {AUTHME_CACHE::SRV::CMDLIST::*}
    loop yaml node keys "command-list" from "{@config}":
        loop yaml node keys "command-list.%loop-value-1%" from "{@config}":
            broadcast "%loop-value-2%"
            set {_A} to yaml value "command-list.%loop-value-1%.%loop-value-2%" from "{@config}"
            broadcast "%{_A}%"
            #set {AUTHME_CACHE::SRV::CMDLIST::%loop-value-1%::*} to {_value::*}

No error and after I debug it on broadcast

image

wallace4BR commented 3 years ago

image

I just tried your code and worked perfectly, you didn't currently said what's the currently problem

Sashie commented 3 years ago

Try version 1.4 and let me know if you get the same error