Closed oskarkk closed 1 year ago
test.sk:
on script load: load yml "plugins/Skript/scripts/test.yml" as "test" command /test: trigger: loop yaml node list "abc" from "test": log "%loop-list%"
test.yml:
abc: foo: - 1 - 2 bar: - 3 - 4
Result on Skript v2.5.3:
> test [03:59:05 Server thread/INFO] [Skript] [test.sk] 1 and 2 [03:59:05 Server thread/INFO] [Skript] [test.sk] 3 and 4
Result on v2.6-beta3:
> test [03:57:58 Server thread/INFO] [Skript] [test.sk] abc.foo [03:57:58 Server thread/INFO] [Skript] [test.sk] abc.bar
The bug is the same on skript-yaml v1.4 and v1.3.2
currently caused by some changes on skript 2.6, in the next skript-yaml version this bug will be fixed
Okay, thanks. Just found that loop-key also gives the whole node path.
test.sk:
test.yml:
Result on Skript v2.5.3:
Result on v2.6-beta3:
The bug is the same on skript-yaml v1.4 and v1.3.2