- Supported Minecraft Versions
- 1.7
- 1.8
- 1.9
- 1.10
- 1.11
EzYML.sk
Description:
A simple function to speed up the process of creating YML files and adding values/lists into them.
Usage:
If you've ever used JSON.sk, you'll understand the way this function works.
An example usage of this:
This will create a file that looks like this:
You can add an infinite amount of values and lists in any order you want. Each action is separated by ||. The list values use ; to separate items in the list.
Description:
A simple function to speed up the process of creating YML files and adding values/lists into them.
Usage:
If you've ever used JSON.sk, you'll understand the way this function works.
An example usage of this:
code_language.skript:
on script load:
if existence of "plugins/DIR/config.yml" is false:
createYMLFile("../../DIR/config.yml", "val: enabled:true||val: test:1||lst: players:ThinkingAboutIt;ThinkingAboutIt2;ThinkingAboutIt3")
This will create a file that looks like this:
code_language.skript:
enabled: true
test: 1
players:
- ThinkingAboutIt
- ThinkingAboutIt2
- ThinkingAboutIt3
code_language.skript:
createYMLFile("FILE PATH", "VAL: NAME:STATE||LST: NAME:LSTVALUE1;LSTVALUE2")