1) Numbers in YAML won't work
2) YAML File is empty
Addon Used: skript-yaml (Should'a been obvious enough already)
Code:
Intended Result:
Actual Result:
So yeah, how do I fix that? (I am using skript-yaml addon if it wasn't clear lol)
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)