#Skript-YAML not loading a yaml file

1 messages · Page 1 of 1 (latest)

tiny granite
real arrow
#

Double check the file path and file names, capitalization matters

tiny granite
#

Already checked that, I even copy pasted the names of the yml files and it still gave me a failed to load error

tiny granite
#

update:

options:
    statsFile: plugins/Database/Stats.yml
    playerStatsFile: plugins/Database/PlayerData/PlayerStatData.yml

on script load:
    load yaml "{@statsFile}" as "config"
    load yaml "{@playerStatsFile}" as "data"

    if yaml "config" is loaded:
        broadcast "Loaded"

    if yaml "plugins/Database/Stats.yml" is not loaded:
        broadcast "Not Loaded"```

For some reason, when I put it to "config", it says its loaded but when I try the file path directly it says it's not loaded?
visual sonnet
#

that is correct. when you load it as config, it's now known to Skript as config, and nothing else

#

so you need to use one or the other, cannot be both

tiny granite
#

oh ok

#

it does load now, so this is solved i guess