Sashie / skript-yaml

The proper way to do yaml in skript
MIT License
32 stars 22 forks source link

Breaking changes with the new update #20

Closed andrei923 closed 5 years ago

andrei923 commented 5 years ago

Code

command test:
    trigger:
        load all yaml from directory "plugins/BedWars/arenas"
        loop currently loaded yaml files:
            #loop-value contains "plugins/BedWars/arenas/"
            broadcast "%loop-value%"

in 1.2.5

the yaml files are loaded like this:

[15:12:15 INFO]: plugins/BedWars/arenas/37.yml
[15:12:15 INFO]: plugins/BedWars/arenas/24.yml
[15:12:15 INFO]: plugins/BedWars/arenas/32.yml

but now they are loaded like this:

[15:07:31 INFO]: plugins\BedWars\arenas10.yml
[15:07:31 INFO]: plugins\BedWars\arenas15.yml
[15:07:31 INFO]: plugins\BedWars\arenas23.yml
andrei923 commented 5 years ago

the / is now \ the / between arenas and number is missing: arenas ->/<- 24.yml

Sashie commented 5 years ago

Sorry for the late reply https://github.com/Sashie/skript-yaml/releases/tag/v1.3.1

andrei923 commented 5 years ago

there is still a problem

command test:
    trigger:
        load all yaml from directory "plugins/Bedwars/playerdata"
        loop currently loaded yaml files:
            loop-value contains "plugins/Bedwars/playerdata" 
            broadcast "%loop-value-1%" #plugins/BedWars/playerdata/ed09f74a-4743-3595-8285-2a165ea93335.yml
            set {_p} to yaml value "DATA.username" from loop-value-1 #[skript-yaml] No yaml by the name 'plugins\BedWars\playerdata\37a9b123-c587-3180-9614-aa425f00c61e.yml' has been loaded
Sashie commented 5 years ago

https://github.com/Sashie/skript-yaml/releases/tag/v1.3.2

andrei923 commented 5 years ago

Thanks a lot for updates, now it works as it should.