TXyaml [Discontinued]

API TXyaml [Discontinued] 0.3

  • 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!

Contributors
Lego_freak1999, XanderWander
Supported Minecraft Versions
  1. 1.13

Warning!


This api discontinued we recommend u to use:
https://forums.skunity.com/resources/skript-yaml.362/

This api is not efficient in anyway for ur server.
to read more about efficiency read here:
https://forums.skunity.com/threads/player-data-system.10951/

Though i leave this online if someone wants to work with yaml without any form of caching or manipulation. (Except color codes).

If for some reason someone has a question pls send it to @Lego_freak1999 since he remains active on the forums.


This addon allows you to use yml as a config. The syntax is similar to the skutillities addon. There for this script is incompatible with skutillities. With this skript you are able to save different types of objects in a yaml like items. This can be very usefull for saving an inventory etc. Also you are able to set a yaml list directly like this:
code_language.skript:
# Set a yml list directly
set yaml list "config" from file "config" from folder "pluginfolder" to {_list::*}

# Set & Retreive an item from yml (keeps enchantments & names!)
set yaml value "item" from file "config" from folder "pluginfolder" to player's tool
set player's tool to yaml value "item" from file "config" from folder "pluginfolder"


code_language.skript:
y[a]ml value %text% (from|of) file %text% (from|of) folder %text%
y[a]ml list %text% (from|of) file %text% (from|of) folder %text%

Boolean
Integer
Item / Material
Location
Number
Offline Player
Player
Text
UUID
Vector

code_language.skript:
set {_val} to yaml value "config.test" from file "config" from folder "yourplugin/pluginfolder"
set yaml value "config.test" from file "config" from folder "yourplugin/pluginfolder" to 12
delete yaml value "config.test" from file "config" from folder "yourplugin/pluginfolder"

set {_val::*} to yaml list "config.test" from file "config" from folder "yourplugin/pluginfolder"
add "val-1" to yaml list "config.test" from file "config" from folder "yourplugin/pluginfolder"
remove "val-1" from yaml list "config.test" from file "config" from folder "yourplugin/pluginfolder"
set yaml list "config.test" from file "config" from folder "yourplugin/pluginfolder" to {_list::*}
delete yaml list "config.test" from file "config" from folder "yourplugin/pluginfolder"

© 2018 TX-Team All Rights Reserved

If you modify this script you will be excluded from support.

Refunds are at our discretion only. (If applicable)
You're not to redistribute this in any form, original, modified or other.

We are not liable for any breakages.
All right are reserved.
This script is made with Skript not Java. This can't be used as an excuse for a refund. (If applicable)
If any rules are violated further support will be discontinued.
If you encounter any problems feel free to contact us and we are happy to help.
Support can be discontinued at any time at our discretion.
  • Like
Reactions: Ayham Alali
Author
TX Plugins
Downloads
1,096
Views
1,096
First release
Last update
Rating
5.00 star(s) 1 ratings

Latest updates

  1. UpperCase Fix

    - Fixed uppercase problems. So now "ConfigFile" is the same as "configfile"
  2. Addition

    - Added support to make use of '&' instead of '§' inside of yaml files.

Latest reviews

Great API! I like the idea of saving items (skript-yaml has that function, but skUtilities does not) That's why you have my support and keep improving it!
TX Plugins
TX Plugins
Thanks for the review! Feel free to suggest any ideas on how to improve it.