Solved [Skript-Yaml] YAML Errors

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

CormanYT

Active Member
Jan 6, 2018
122
5
18
1) Numbers in YAML won't work
2) YAML File is empty

Addon Used: skript-yaml (Should'a been obvious enough already)

Code:
code_language.skript:
on script load:
    if "plugins/iEssentials/config.yml" doesn't exist:
        load "plugins/iEssentials/config.yml" as "config"
        set the header of "config" to "|-------------|" and "| iEssentials |" and "|-------------|"
        set yaml value "no-permission-message" from "config" to "&cYou do not have permission for this command!"
        set yaml value "teleporation-message" from "config" to "&6Teleporting..."
        set yaml value "starting-balance" from "config" to "0"
        set yaml value "nickname-max-length" from "config" to "30" 
        save yaml "config"
    else:
        load "plugins/iEssentials/config.yml" as "config"
    set {iEssentials::config::no-permission-message} to yaml value "no-permission-message" from "config"
    set {iEssentials::config::teleporation-message} to yaml value "teleporation-message" from "config"
    set {iEssentials::config::starting-balance} to yaml value "starting-balance" from "config"
    set {iEssentials::config::nickname-max-length} to yaml value "nickname-max-length" from "config"

Intended Result:
YAML:
no-permission-message: &cYou do not have permission for this command!
teleporation-message: &6Teleporting...
starting-balance: 0
nickname-max-length: 30

Actual Result:

YAML:

So yeah, how do I fix that? (I am using skript-yaml addon if it wasn't clear lol)
 
Status
Not open for further replies.