Save YAML (Effect) — skript-yaml

Addon: skript-yaml · Category: Effect · Since: 1.0.0

Syntax

save y[a]ml %strings% [with an indentation of %-number%] [([and] with(out| no) extra lines between nodes)]

Description

Saves the current cached YAML elements to file. - Using the `[with an indentation of %-number%]` option allows you to save the file with a different amount of spacing between 1 and 10 - Option to remove extra lines between nodes - Use `to %string%` or `as %string%` to save to a different file path

Examples

save yaml "config"
save yaml "config" with an indentation of 2
save yaml "config" to "plugins/MyPlugin/backup.yml"
save yaml "config" as "plugins/MyPlugin/config_backup.yml" with an indentation of 4

View source