Resource icon
  • 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 comminuty!

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

Supported Minecraft Versions
  1. 1.7
  2. 1.8
  3. 1.9
  4. 1.10
  5. 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:
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")
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.
Author
ThinkingAboutIt
Downloads
174
Views
663
First release
Last update
Rating
5.00 star(s) 1 ratings

Latest reviews

Amazing! <3