1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Addon skript-yaml v1.2.4

YAML the way it should be

Tags:
  1. More fixes

    Sashie
    • Fixed issue with files not loading if some keys contained integers
      • They now get converted into characters, keep this in mind when fetching data from those nodes
    • Fixed issue with elements not saving in the same order they were set
    • Fixed error when loading a file with empty nodes
    • Fixed a casting issue with lists
    AlvianMinecraft likes this.
  2. v1.2.3

    Sashie
    • Fixed issue #6 before it was reported <3
      • Moved serialization method to better location to address an issue where certain serialization didn't happen if the file was loaded and saved again(without setting the value)
    • Added more skript classes to the representer
      • Date, Time, Timespan, Color and WeatherType
        • Date is parsed the same way snakeyaml would have converted 'java.util.Date'...
  3. v1.2.2

    Sashie
    Bugfixes

    • Added Skripts ItemType and Slot class to the yaml representer
      • This fixes certain items not being saved as ItemStack
    • Fixed stacktrace when saving empty yaml
    • Updated the Yaml expression to filter color codes back and forth
      • Use the 'without string checks' option to disable it
  4. Bugfixes and more

    Sashie
    Bugfixes and more
    • Updated how de/serialization works using Snakeyamls built in methods
      • This means you will see a change in how Skript serialized classes look removing the map node 'skriptclass' to a tag '!skriptclass' that Snakeyaml uses to parse data types
      • Vector and Location also have a tag and removal of the map node representing the data type
      • Bukkits ConfigurationSerializable data types are also de/serializable using the same method bukkit feeds to...
  5. More features

    Sashie
    Code (Text):
    1.  
    2. Added even more things to make the addon more feature complete
    3.  
    4.   - Added effect `[re]load all [y[a]ml] from [(1¦non[(-| )]relative)] director(y|ies) %strings% [using [the] filename as [the] id]` (loads all .yml from a directory thx pikachu for the idea)
    5.   - Files are now saved with additional lines between each node
    6.     - Updated 'Save yaml' effect to...
    7.       - `save [y[a]ml] %string% [(1¦without extra lines between nodes)]`
    8.   - Comments and header no longer add additional lines by...
    KingAlterIV likes this.
  6. Bug fix

    Sashie
    Removed AsyncEffect from save effect due to issues

    To reproduce said issue...

    Code (Skript):
    1.  
    2. On script load:
    3.    load yaml "plugins/skript-yaml/test/test.yml" as "test"
    4.  
    5. command /test:
    6.    trigger:
    7.        loop 100 times:
    8.            set yaml value "node1.node2.node3" from "test" to 1
    9.            save yaml "test"
    10.  
    KingAlterIV likes this.
  7. v1.1.5

    Sashie
    Added a couple more things to make the addon more feature complete

    • Added effect delete [y[a]ml] %string% (deletes the file and removes it from memory)
    • Added condition [skript-]y[a]ml %string% is[(n't| not)] empty (only checks if there are any nodes)
    KingAlterIV likes this.
  8. v1.1.4

    Sashie
    Workaround for Async issue
    TheIronMinerLv likes this.
  9. Bug fixes

    Sashie
    • Fixed a bug with 'skriptclass' values from root nodes not returning properly
    • Fixed a bug with getting names of nodes
    Thanks @Simuciokas for spotting those!
    FUZIK likes this.
  10. Root directory support

    Sashie
    Root directories
    • Added root directory support
    • Updated Load yaml syntax to [re]load [non[(-| )]relative] [y[a]ml] %string% [as %-string%]
    Usage:
    Code (Text):
    1.  
    2. #If the server is on drive D:\(on windows) for example then that would be the root path
    3.    load non-relative yaml "RootFolder/MyAwesomePlugin/config.yml"
    4. #Otherwise you can specify a drive
    5.    load non-relative yaml "C:/RootFolder/MyAwesomePlugin/config.yml"
    6.  
    TheIronMinerLv likes this.