Giter Club home page Giter Club logo

skript-yaml's People

Contributors

blueyescat avatar emiliobarradas avatar sashie avatar shanebeee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

skript-yaml's Issues

Loading error

This example will reproduce the error

command /loadtest:
	trigger:
		set {test::%player%} to "test"
		broadcast {test::%player%}
		set {_test} to "plugins/skript-yaml/%{test::%player%}%.yml"
		broadcast {_test}
		load yaml {_test}
		set skript-yaml value "test" from {_test} to "test"
		#save yaml {_test}

I'm leaving this here for now because i'm off to work and have no time to fix it at the moment.

error in loading

[skript-yaml] Enabling skript-yaml v1.4
[11.06 11:26:27.671] 信息: [Lobby-1] [11:26:26 WARN]: java.lang.NoSuchMethodException: org.yaml.snakeyaml.representer.BaseRepresenter.representMapping(org.yaml.snakeyaml.nodes.Tag,java.util.Map,java.lang.Boolean)
[11.06 11:26:27.807] 信息: [Lobby-1] [11:26:26 WARN]:   at java.base/java.lang.Class.getDeclaredMethod(Class.java:2848)
[11.06 11:26:27.808] 信息: [Lobby-1] [11:26:26 WARN]:   at !Skript-Addon[YAML]-skript-yaml[1.4].jar//me.sashie.skriptyaml.utils.yaml.SkriptYamlRepresenter.<clinit>(SkriptYamlRepresenter.java:44)
[11.06 11:26:27.808] 信息: [Lobby-1] [11:26:26 WARN]:   at !Skript-Addon[YAML]-skript-yaml[1.4].jar//me.sashie.skriptyaml.SkriptYaml.onEnable(SkriptYaml.java:136)
[11.06 11:26:27.809] 信息: [Lobby-1] [11:26:26 WARN]:   at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:287)
[11.06 11:26:27.810] 信息: [Lobby-1] [11:26:26 WARN]:   at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:188)
[11.06 11:26:27.811] 信息: [Lobby-1] [11:26:26 WARN]:   at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104)
[11.06 11:26:27.812] 信息: [Lobby-1] [11:26:26 WARN]:   at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507)
[11.06 11:26:27.812] 信息: [Lobby-1] [11:26:26 WARN]:   at org.bukkit.craftbukkit.v1_20_R3.CraftServer.enablePlugin(CraftServer.java:653)
[11.06 11:26:27.813] 信息: [Lobby-1] [11:26:26 WARN]:   at org.bukkit.craftbukkit.v1_20_R3.CraftServer.enablePlugins(CraftServer.java:564)
[11.06 11:26:27.814] 信息: [Lobby-1] [11:26:26 WARN]:   at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:675)
[11.06 11:26:27.815] 信息: [Lobby-1] [11:26:26 WARN]:   at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:435)
[11.06 11:26:27.816] 信息: [Lobby-1] [11:26:26 WARN]:   at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:346)
[11.06 11:26:27.821] 信息: [Lobby-1] [11:26:26 WARN]:   at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1146)
[11.06 11:26:27.823] 信息: [Lobby-1] [11:26:26 WARN]:   at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323)
[11.06 11:26:27.823] 信息: [Lobby-1] [11:26:26 WARN]:   at java.base/java.lang.Thread.run(Thread.java:1583)
[11.06 11:26:27.824] 信息: [Lobby-1] [11:26:26 ERROR]: Error occurred while enabling skript-yaml v1.4 (Is it up to date?)
[11.06 11:26:27.824] 信息: [Lobby-1] java.lang.NoSuchMethodError: org.yaml.snakeyaml.representer.Representer: method 'void <init>()' not found
[11.06 11:26:27.825] 信息: [Lobby-1]    at me.sashie.skriptyaml.utils.yaml.SkriptYamlRepresenter.<init>(SkriptYamlRepresenter.java:56) ~[!Skript-Addon[YAML]-skript-yaml[1.4].jar:?]
[11.06 11:26:27.825] 信息: [Lobby-1]    at me.sashie.skriptyaml.SkriptYaml.onEnable(SkriptYaml.java:136) ~[!Skript-Addon[YAML]-skript-yaml[1.4].jar:?]
[11.06 11:26:27.826] 信息: [Lobby-1]    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:287) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:?]
[11.06 11:26:27.827] 信息: [Lobby-1]    at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:188) ~[purpur-1.20.4.jar:git-Purpur-2176]
[11.06 11:26:27.827] 信息: [Lobby-1]    at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) ~[purpur-1.20.4.jar:git-Purpur-2176]
[11.06 11:26:27.828] 信息: [Lobby-1]    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:?]
[11.06 11:26:27.829] 信息: [Lobby-1]    at org.bukkit.craftbukkit.v1_20_R3.CraftServer.enablePlugin(CraftServer.java:653) ~[purpur-1.20.4.jar:git-Purpur-2176]
[11.06 11:26:27.834] 信息: [Lobby-1]    at org.bukkit.craftbukkit.v1_20_R3.CraftServer.enablePlugins(CraftServer.java:564) ~[purpur-1.20.4.jar:git-Purpur-2176]
[11.06 11:26:27.834] 信息: [Lobby-1]    at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:675) ~[purpur-1.20.4.jar:git-Purpur-2176]
[11.06 11:26:27.835] 信息: [Lobby-1]    at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:435) ~[purpur-1.20.4.jar:git-Purpur-2176]
[11.06 11:26:27.836] 信息: [Lobby-1]    at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:346) ~[purpur-1.20.4.jar:git-Purpur-2176]
[11.06 11:26:27.837] 信息: [Lobby-1]    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1146) ~[purpur-1.20.4.jar:git-Purpur-2176]
[11.06 11:26:27.837] 信息: [Lobby-1]    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323) ~[purpur-1.20.4.jar:git-Purpur-2176]

Change api-version to 1.13

In newest release, api-version is set to 1.19, which makes the plugin to not load on any server running older version than 1.19. Setting api-version to 1.13 makes it load on all servers as servers below 1.13 ignore the api-version setting.

Can Replace Values ​​Without Needing Variables

Can Replace Values ​​Without Needing Variables

Something to be implemented in skript-yaml, of course and if possible, would be to add a means so that it can replace values ​​without needing to set the yml value for a variable, and thus replace a value inside it.

with this example you should have an idea of ​​what I want to talk about.

loop yaml value "Test" from "test" replacing "@player" with "%player%"
loop yaml value "Test" from "test" replacing "@player" with "%player%" and "@test" with "This is a Test"

send yaml value "Test" from "test" replacing "@player" with "%player%"
send yaml value "Test" from "test" replacing "@player" with "%player%" and "@test" with "This is a Test"

of course this is just an idea that could be implemented, besides that when using this
the Skript should become faster since the loop already saves some ticks.
this would also help, for example, remove variables in skript making it as simple and fast as possible.

Of course this could be placed not only in loops or only with values, but also with lists.

Thanks for reading my suggestion. I hope it's not a bad idea
unnecessary to add it.

Server Thread Dump

[14:28:40] [Paper Watchdog Thread/ERROR]: ------------------------------
[14:28:40] [Paper Watchdog Thread/ERROR]: Server thread dump (Look for plugins here before reporting to Paper!):
[14:28:40] [Paper Watchdog Thread/ERROR]: ------------------------------
[14:28:40] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 558959ms or 11179 ticks behind
[14:28:40] [Paper Watchdog Thread/ERROR]: Current Thread: Server thread
[14:28:40] [Paper Watchdog Thread/ERROR]: 	PID: 20 | Suspended: false | Native: false | State: RUNNABLE
[14:28:40] [Paper Watchdog Thread/ERROR]: 	Stack:
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.reader.StreamReader.prefixForward(StreamReader.java:162)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.scanner.ScannerImpl.scanPlainSpaces(ScannerImpl.java:2033)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.scanner.ScannerImpl.scanPlain(ScannerImpl.java:2014)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.scanner.ScannerImpl.fetchPlain(ScannerImpl.java:1044)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:399)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:227)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:558)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:217)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:239)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:230)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:218)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:239)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:230)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:218)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:239)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:230)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:218)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.composer.Composer.getNode(Composer.java:85)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:108)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:141)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:525)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		org.yaml.snakeyaml.Yaml.load(Yaml.java:438)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		me.sashie.skriptyaml.utils.yaml.YAMLProcessor.load(YAMLProcessor.java:181)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		me.sashie.skriptyaml.skript.EffLoadYaml.load(EffLoadYaml.java:90)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		me.sashie.skriptyaml.skript.EffLoadYaml.execute(EffLoadYaml.java:55)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		ch.njol.skript.lang.Effect.run(Effect.java:52)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		ch.njol.skript.lang.Trigger.execute(Trigger.java:57)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		ch.njol.skript.lang.function.ScriptFunction.execute(ScriptFunction.java:90)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		ch.njol.skript.lang.function.Function.execute(Function.java:136)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		net.minecraft.server.v1_15_R1.MinecraftServer.ba(MinecraftServer.java:1106)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		net.minecraft.server.v1_15_R1.MinecraftServer.executeNext(MinecraftServer.java:1099)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeAll(IAsyncTaskHandler.java:95)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:1233)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:971)
[14:28:40] [Paper Watchdog Thread/ERROR]: 		java.lang.Thread.run(Unknown Source)
[14:28:40] [Paper Watchdog Thread/ERROR]: ------------------------------
[14:28:40] [Paper Watchdog Thread/ERROR]: --- DO NOT REPORT THIS TO PAPER - THIS IS NOT A BUG OR A CRASH ---
[14:28:40] [Paper Watchdog Thread/ERROR]: ------------------------------

Loop yaml doesn't work in the latest version

Skript: dev 34
Minecraft : 1.10.2
Skript-yaml : 1.2.4

When i use :
loop yaml nodes "test" of "ID":
It does not work
but
set {_test} to (yaml value "version" of "ID)
is working

BUG

This my yml

command-list:
    member:
        '1': 'loginsystem'
        '2': 'login'
        '3': 'logout'
        '4': 'register'
        '5': 'changepassword'
    op:
        '1': 'loginsystem'
        '2': 'login'
        '3': 'logout'
        '4': 'register'
        '5': 'changepassword'
        '6': 'forcelogin'

This my code

on load:
    print warning "[{@base.name}] Updates data into permanent variables for fast writing!" to console
    # Set cache list command
    delete {AUTHME_CACHE::SRV::CMDLIST::*}
    loop yaml node keys "command-list" from "{@config}":
        loop yaml node keys "command-list.%loop-value-1%" from "{@config}":
            broadcast "%loop-value-2%"
            set {_A} to yaml value "command-list.%loop-value-1%.%loop-value-2%" from "{@config}"
            broadcast "%{_A}%"
            #set {AUTHME_CACHE::SRV::CMDLIST::%loop-value-1%::*} to {_value::*}

No error and after I debug it on broadcast

image

java.lang.NullPointerException

[00:20:36] [Server thread/ERROR]: #!#! java.lang.NullPointerException
[00:20:36] [Server thread/ERROR]: #!#!     at me.sashie.skriptyaml.skript.ExprYaml.parseString(ExprYaml.java:293)
[00:20:36] [Server thread/ERROR]: #!#!     at me.sashie.skriptyaml.skript.ExprYaml.arrayToList(ExprYaml.java:288)
[00:20:36] [Server thread/ERROR]: #!#!     at me.sashie.skriptyaml.skript.ExprYaml.change(ExprYaml.java:280)
[00:20:36] [Server thread/ERROR]: #!#!     at ch.njol.skript.effects.EffChange.execute(EffChange.java:282)
[00:20:36] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:51)
[00:20:36] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:60)
[00:20:36] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:88)
[00:20:36] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:56)
[00:20:36] [Server thread/ERROR]: #!#!     at ch.njol.skript.events.EvtScript.register(EvtScript.java:60)
[00:20:36] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader$4.call(ScriptLoader.java:737)
[00:20:36] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader$4.call(ScriptLoader.java:1)
[00:20:36] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:760)
[00:20:36] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.lambda$4(ScriptLoader.java:401)
[00:20:36] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:420)
[00:20:36] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.lambda$3(ScriptLoader.java:337)
[00:20:36] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:370)
[00:20:36] [Server thread/ERROR]: #!#!     at ch.njol.skript.Skript.reloadScripts(Skript.java:999)
[00:20:36] [Server thread/ERROR]: #!#!     at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:165)
[00:20:36] [Server thread/ERROR]: #!#!     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
[00:20:36] [Server thread/ERROR]: #!#!     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149)
[00:20:36] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_16_R1.CraftServer.dispatchCommand(CraftServer.java:757)
[00:20:36] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_16_R1.CraftServer.dispatchServerCommand(CraftServer.java:742)
[00:20:36] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_16_R1.DedicatedServer.handleCommandQueue(DedicatedServer.java:386)
[00:20:36] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_16_R1.DedicatedServer.b(DedicatedServer.java:355)
[00:20:36] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_16_R1.MinecraftServer.a(MinecraftServer.java:1009)
[00:20:36] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_16_R1.MinecraftServer.v(MinecraftServer.java:848)
[00:20:36] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_16_R1.MinecraftServer.lambda$0(MinecraftServer.java:164)
[00:20:36] [Server thread/ERROR]: #!#!     at java.base/java.lang.Thread.run(Unknown Source)
[00:20:36] [Server thread/ERROR]: #!#!
[00:20:36] [Server thread/ERROR]: #!#! Version Information:
[00:20:36] [Server thread/ERROR]: #!#!   Skript: 2.5.1 (latest)
[00:20:36] [Server thread/ERROR]: #!#!     Flavor: skriptlang-github
[00:20:36] [Server thread/ERROR]: #!#!     Date: 2020-10-22
[00:20:36] [Server thread/ERROR]: #!#!   Bukkit: 1.16.1-R0.1-SNAPSHOT
[00:20:36] [Server thread/ERROR]: #!#!   Minecraft: 1.16.1
[00:20:36] [Server thread/ERROR]: #!#!   Java: 9.0.4 (Java HotSpot(TM) 64-Bit Server VM 9.0.4+11)
[00:20:36] [Server thread/ERROR]: #!#!   OS: Windows 10 amd64 10.0
[00:20:36] [Server thread/ERROR]: #!#!
[00:20:36] [Server thread/ERROR]: #!#! Server platform: Spigot
[00:20:36] [Server thread/ERROR]: #!#!
[00:20:36] [Server thread/ERROR]: #!#! Current node: null
[00:20:36] [Server thread/ERROR]: #!#! Current item: set yaml list "test.result" from "smithing" to {_a::*}(as java.lang.Object)

skript code:

on script load:
  load yaml "plugins/RPGProfessions/smithing.yml" as "smithing"
  set {_a::1::chance} to 20
  set {_a::1::item} to "failed_iron_ingot"
  set {_a::2::chance} to 50
  set {_a::2::item} to "forged_iron_ingot"
  set {_a::3::chance} to 20
  set {_a::3::item} to "good_iron_ingot"
  set {_a::4::chance} to 10
  set {_a::4::item} to "rare_iron_ingot"
  set yaml list "test.result" from "smithing" to {_a::*}
  save yaml "smithing"

[ERROR] Fatal error in 1.14.4

Hello !
I've an error with skript-yaml wich version 1.3.2.
I have 1.14.4 spigot.
Error :

[17:13:41] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[17:13:41] [Server thread/ERROR]: #!#! 
[17:13:41] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
[17:13:41] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[17:13:41] [Server thread/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[17:13:41] [Server thread/ERROR]: #!#! Here is full list of them:
[17:13:41] [Server thread/ERROR]: #!#! skRayFall (https://sk.rayfall.net/) Vixio (http://vixio.space) TuSKe (github.com/Tuke-Nuke/TuSKe) SK-NBeeT (https://github.com/ShaneBeee/Sk-NBeeT) Kosmos (tlatoani.us/kosmos) Skellett (https://forums.skunity.com/resources/skellett.24/) PirateSK SharpSK Skent skript-mirror (https://github.com/btk5h/skript-mirror) skDragon SkStuff skUtilities (https://tim740.github.io/) skript-yaml SkQuery Ersatz 
[17:13:41] [Server thread/ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[17:13:41] [Server thread/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[17:13:41] [Server thread/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[17:13:41] [Server thread/ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[17:13:41] [Server thread/ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[17:13:41] [Server thread/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[17:13:41] [Server thread/ERROR]: #!#! 
[17:13:41] [Server thread/ERROR]: #!#! Stack trace:
[17:13:41] [Server thread/ERROR]: #!#! java.lang.IllegalStateException: zip file closed
[17:13:41] [Server thread/ERROR]: #!#!     at java.util.zip.ZipFile.ensureOpen(ZipFile.java:686)
[17:13:41] [Server thread/ERROR]: #!#!     at java.util.zip.ZipFile.getEntry(ZipFile.java:315)
[17:13:41] [Server thread/ERROR]: #!#!     at java.util.jar.JarFile.getEntry(JarFile.java:240)
[17:13:41] [Server thread/ERROR]: #!#!     at java.util.jar.JarFile.getJarEntry(JarFile.java:223)
[17:13:41] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:97)
[17:13:41] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:202)
[17:13:41] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:92)
[17:13:41] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:81)
[17:13:41] [Server thread/ERROR]: #!#!     at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[17:13:41] [Server thread/ERROR]: #!#!     at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[17:13:41] [Server thread/ERROR]: #!#!     at me.sashie.skriptyaml.skript.CondYamlFileExists$1.check(CondYamlFileExists.java:46)
[17:13:41] [Server thread/ERROR]: #!#!     at me.sashie.skriptyaml.skript.CondYamlFileExists$1.check(CondYamlFileExists.java:1)
[17:13:41] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.util.SimpleExpression.check(SimpleExpression.java:173)
[17:13:41] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.VariableString.check(VariableString.java:741)
[17:13:41] [Server thread/ERROR]: #!#!     at me.sashie.skriptyaml.skript.CondYamlFileExists.check(CondYamlFileExists.java:43)
[17:13:41] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Condition.run(Condition.java:56)
[17:13:41] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Conditional.walk(Conditional.java:51)
[17:13:41] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[17:13:41] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:57)
[17:13:41] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:292)
[17:13:41] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:251)
[17:13:41] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:251)
[17:13:41] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:168)
[17:13:41] [Server thread/ERROR]: #!#!     at sun.reflect.GeneratedMethodAccessor194.invoke(Unknown Source)
[17:13:41] [Server thread/ERROR]: #!#!     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[17:13:41] [Server thread/ERROR]: #!#!     at java.lang.reflect.Method.invoke(Method.java:498)
[17:13:41] [Server thread/ERROR]: #!#!     at us.Myles.PWP.TransparentListeners.PerWorldPluginLoader$1.execute(PerWorldPluginLoader.java:120)
[17:13:41] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[17:13:41] [Server thread/ERROR]: #!#!     at us.Myles.PWP.TransparentListeners.PWPRegisteredListener.callEvent(PWPRegisteredListener.java:30)
[17:13:41] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:529)
[17:13:41] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:514)
[17:13:41] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_14_R1.PlayerConnection.handleCommand(PlayerConnection.java:1633)
[17:13:41] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1481)
[17:13:41] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(PacketPlayInChat.java:47)
[17:13:41] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(PacketPlayInChat.java:1)
[17:13:41] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19)
[17:13:41] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_14_R1.TickTask.run(SourceFile:18)
[17:13:41] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeTask(SourceFile:144)
[17:13:41] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_14_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23)
[17:13:41] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeNext(SourceFile:118)
[17:13:41] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_14_R1.MinecraftServer.aX(MinecraftServer.java:910)
[17:13:41] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:903)
[17:13:41] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.awaitTasks(SourceFile:127)
[17:13:41] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick(MinecraftServer.java:887)
[17:13:41] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:820)
[17:13:41] [Server thread/ERROR]: #!#!     at java.lang.Thread.run(Thread.java:748)
[17:13:41] [Server thread/ERROR]: #!#! 
[17:13:41] [Server thread/ERROR]: #!#! Version Information:
[17:13:41] [Server thread/ERROR]: #!#!   Skript: 2.4
[17:13:41] [Server thread/ERROR]: #!#!     Flavor: skriptlang-github
[17:13:41] [Server thread/ERROR]: #!#!     Date: 2019-11-30
[17:13:41] [Server thread/ERROR]: #!#!   Bukkit: 1.14.4-R0.1-SNAPSHOT
[17:13:41] [Server thread/ERROR]: #!#!   Minecraft: 1.14.4
[17:13:41] [Server thread/ERROR]: #!#!   Java: 1.8.0_212 (OpenJDK 64-Bit Server VM 25.212-b01)
[17:13:41] [Server thread/ERROR]: #!#!   OS: Linux amd64 4.9.0-6-amd64
[17:13:41] [Server thread/ERROR]: #!#! 
[17:13:41] [Server thread/ERROR]: #!#! Server platform: Spigot
[17:13:41] [Server thread/ERROR]: #!#! 
[17:13:41] [Server thread/ERROR]: #!#! Current node: null
[17:13:41] [Server thread/ERROR]: #!#! Current item: yaml file "plugins/MythicMobs/Mobs/MobMaker.yml" does not exist
[17:13:41] [Server thread/ERROR]: #!#! Current trigger: command /loadyaml (simple event) (mm.sk, line -1)
[17:13:41] [Server thread/ERROR]: #!#! 
[17:13:41] [Server thread/ERROR]: #!#! Thread: Server thread
[17:13:41] [Server thread/ERROR]: #!#! 
[17:13:41] [Server thread/ERROR]: #!#! Language: english
[17:13:41] [Server thread/ERROR]: #!#! Link parse mode: STRICT
[17:13:41] [Server thread/ERROR]: #!#! 
[17:13:41] [Server thread/ERROR]: #!#! End of Error.
[17:13:41] [Server thread/ERROR]: #!#!```
Thanks in advance !

Error Skript YAML

Hi, I got this error and idk if this could be a problem
[22:32:58 ERROR]: #!#! Stack trace:
[22:32:58 ERROR]: #!#! java.lang.ClassCastException: class java.lang.Boolean cannot be cast to class java.lang.String (java.lang.Boolean and java.lang.String are in module java.base of loader 'bootstrap')
[22:32:58 ERROR]: #!#! at Skript.jar//ch.njol.skript.expressions.ExprParse.get(ExprParse.java:164)
[22:32:58 ERROR]: #!#! at Skript.jar//ch.njol.skript.lang.util.SimpleExpression.check(SimpleExpression.java:150)
[22:32:58 ERROR]: #!#! at Skript.jar//ch.njol.skript.conditions.CondCompare.check(CondCompare.java:348)
[22:32:58 ERROR]: #!#! at Skript.jar//ch.njol.skript.sections.SecConditional.lambda$checkConditions$1(SecConditional.java:384)
[22:32:58 ERROR]: #!#! at java.base/java.util.stream.MatchOps$1MatchSink.accept(MatchOps.java:90)
[22:32:58 ERROR]: #!#! at java.base/java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1602)
[22:32:58 ERROR]: #!#! at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:129)
[22:32:58 ERROR]: #!#! at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:527)
[22:32:58 ERROR]: #!#! at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:513)
[22:32:58 ERROR]: #!#! at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
[22:32:58 ERROR]: #!#! at java.base/java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230)
[22:32:58 ERROR]: #!#! at java.base/java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196)
[22:32:58 ERROR]: #!#! at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
[22:32:58 ERROR]: #!#! at java.base/java.util.stream.ReferencePipeline.allMatch(ReferencePipeline.java:637)
[22:32:58 ERROR]: #!#! at Skript.jar//ch.njol.skript.sections.SecConditional.checkConditions(SecConditional.java:384)
[22:32:58 ERROR]: #!#! at Skript.jar//ch.njol.skript.sections.SecConditional.walk(SecConditional.java:286)
[22:32:58 ERROR]: #!#! at Skript.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:88)
[22:32:58 ERROR]: #!#! at Skript.jar//ch.njol.skript.lang.Trigger.execute(Trigger.java:52)
[22:32:58 ERROR]: #!#! at Skript.jar//ch.njol.skript.SkriptEventHandler.lambda$check$3(SkriptEventHandler.java:155)
[22:32:58 ERROR]: #!#! at Skript.jar//ch.njol.skript.SkriptEventHandler.lambda$check$4(SkriptEventHandler.java:166)
[22:32:58 ERROR]: #!#! at Skript.jar//ch.njol.skript.util.Task.callSync(Task.java:164)
[22:32:58 ERROR]: #!#! at Skript.jar//ch.njol.skript.util.Task.callSync(Task.java:148)
[22:32:58 ERROR]: #!#! at Skript.jar//ch.njol.skript.SkriptEventHandler.check(SkriptEventHandler.java:164)
[22:32:58 ERROR]: #!#! at Skript.jar//ch.njol.skript.SkriptEventHandler.access$000(SkriptEventHandler.java:53)
[22:32:58 ERROR]: #!#! at Skript.jar//ch.njol.skript.SkriptEventHandler$PriorityListener.lambda$new$0(SkriptEventHandler.java:66)
[22:32:58 ERROR]: #!#! at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81)
[22:32:58 ERROR]: #!#! at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[22:32:58 ERROR]: #!#! at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54)
[22:32:58 ERROR]: #!#! at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126)
[22:32:58 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615)
[22:32:58 ERROR]: #!#! at org.bukkit.craftbukkit.v1_20_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:593)
[22:32:58 ERROR]: #!#! at net.minecraft.server.level.PlayerInteractManager.a(PlayerInteractManager.java:536)
[22:32:58 ERROR]: #!#! at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1935)
[22:32:58 ERROR]: #!#! at net.minecraft.network.protocol.game.PacketPlayInUseItem.a(PacketPlayInUseItem.java:37)
[22:32:58 ERROR]: #!#! at net.minecraft.network.protocol.game.PacketPlayInUseItem.a(PacketPlayInUseItem.java:9)
[22:32:58 ERROR]: #!#! at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$ensureRunningOnSameThread$0(PlayerConnectionUtils.java:54)
[22:32:58 ERROR]: #!#! at net.minecraft.server.TickTask.run(TickTask.java:18)
[22:32:58 ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.d(IAsyncTaskHandler.java:153)
[22:32:58 ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(IAsyncTaskHandlerReentrant.java:24)
[22:32:58 ERROR]: #!#! at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1455)
[22:32:58 ERROR]: #!#! at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:194)
[22:32:58 ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.x(IAsyncTaskHandler.java:126)
[22:32:58 ERROR]: #!#! at net.minecraft.server.MinecraftServer.bl(MinecraftServer.java:1432)
[22:32:58 ERROR]: #!#! at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1355)
[22:32:58 ERROR]: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.c(IAsyncTaskHandler.java:136)
[22:32:58 ERROR]: #!#! at net.minecraft.server.MinecraftServer.w_(MinecraftServer.java:1333)
[22:32:58 ERROR]: #!#! at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1222)
[22:32:58 ERROR]: #!#! at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319)
[22:32:58 ERROR]: #!#! at java.base/java.lang.Thread.run(Thread.java:840)
[22:32:58 ERROR]: #!#!
[22:32:58 ERROR]: #!#! Version Information:
[22:32:58 ERROR]: #!#! Skript: 2.8.3 (latest)
[22:32:58 ERROR]: #!#! Flavor: skriptlang-github
[22:32:58 ERROR]: #!#! Date: 16:23:04.254419600
[22:32:58 ERROR]: #!#! Bukkit: 1.20.4-R0.1-SNAPSHOT
[22:32:58 ERROR]: #!#! Minecraft: 1.20.4
[22:32:58 ERROR]: #!#! Java: 17.0.10 (OpenJDK 64-Bit Server VM 17.0.10+7)
[22:32:58 ERROR]: #!#! OS: Windows 11 amd64 10.0
[22:32:58 ERROR]: #!#!
[22:32:58 ERROR]: #!#! Server platform: Paper
[22:32:58 ERROR]: #!#!
[22:32:58 ERROR]: #!#! Current node: null
[22:32:58 ERROR]: #!#! Current item: if yaml value "1.enabled" from "config" parsed as an item type is equal to the block (comparator: ConvertedComparator{first=null,comparator=ComparatorInfo{first=class ch.njol.skript.aliases.ItemType,second=class ch.njol.skript.aliases.ItemType,comparator=ch.njol.skript.classes.data.DefaultComparators$11@601497ee},second=ConverterInfo{from=interface org.bukkit.block.Block,to=class ch.njol.skript.aliases.ItemType,converter=ch.njol.skript.classes.data.DefaultConverters$$Lambda$7408/0x0000023690f2ceb8@538f62e,flags=5}})
[22:32:58 ERROR]: #!#! Current trigger: click (click) (SkriptBlocker.sk, line 15)
[22:32:58 ERROR]: #!#!
[22:32:58 ERROR]: #!#! Thread: Server thread
[22:32:58 ERROR]: #!#!
[22:32:58 ERROR]: #!#! Language: english
[22:32:58 ERROR]: #!#! Link parse mode: DISABLED
[22:32:58 ERROR]: #!#!
[22:32:58 ERROR]: #!#! End of Error.
[22:32:58 ERROR]: #!#!

SkriptClass problem

Heya, I wanted to report a problem I just met. I don't know if this is from skript-yaml or me but I prefer to report it.
Then follow the instructions to reproduce the problem:

  1. Create a new script and copy paste this code in:
on load:
	if dir "plugins/tests" doesn't exist:
		create dir "plugins/tests"

on left click with diamond sword:
	if name of player's tool is "&dStructure Save":
		if event-block is set:
			cancel event
			set {players::%player%::pos1} to location of event-block
			send "&aPosition 1 set! (&e%location of event-block%&a)"
			stop

on right click with diamond sword:
	if name of player's tool is "&dStructure Save":
		if event-block is set:
			cancel event
			set {players::%player%::pos2} to location of event-block
			send "&aPosition 2 set! (&e%location of event-block%&a)"
			stop

command /test:
	trigger:
		set {_i} to 1
		while file "plugins/tests/test%{_i}%.yml" exists:
			add 1 to {_i}
		loop all blocks within (block at {players::%player%::pos1}) and (block at {players::%player%::pos2}):
			add location of loop-block to {_locations::*}
			add loop-block to {_blocks::*}
		create file "plugins/tests/test%{_i}%.yml"
		load yaml "plugins/tests/test%{_i}%.yml" as "plugins/tests/test%{_i}%.yml"
		loop {_blocks::*}:
			add loop-value to skript-yaml list "Blocks.%loop-index%.block" from "plugins/tests/test%{_i}%.yml"
			if loop-value is chest:
				loop 27 times:
					set {_item} to slot ((loop-value-2) - 1) of inventory of block at {_locations::%loop-index%}
					add {_item} to skript-yaml list "Blocks.%loop-index%.content" from "plugins/tests/test%{_i}%.yml"
		save yaml "plugins/tests/test%{_i}%.yml"
		send "&aStructure saved! Now use &e/test2"

command /test2:
	trigger:
		set {_i} to 1
		while file "plugins/tests/test%{_i}%.yml" exists:
			add 1 to {_i}
		remove 1 from {_i}
		set {_blocks2::*} to skript-yaml node list "Blocks" from "plugins/tests/test%{_i}%.yml"
		loop {_blocks2::*}:
			set {_blocks::%loop-index%::*} to skript-yaml list "Blocks.%loop-index%.block" from "plugins/tests/test%{_i}%.yml"
			broadcast "%{_blocks::%loop-index%::*}%"

command /give:
	trigger:
		give diamond sword named "&dStructure Save" to player
  1. Reload the script
  2. Reproduce this schema in your world:
    This
  3. Make "/give"
  4. Take the diamond sword you received and make a right click on a yellow wool and a left click on the another
  5. Make "/test"
  6. Make "/test2"
  7. Enjoy! Got:
me.sashie.skriptyaml.utils.yaml.SkriptClass@6c846334
me.sashie.skriptyaml.utils.yaml.SkriptClass@340b5b95
me.sashie.skriptyaml.utils.yaml.SkriptClass@6b00f306
me.sashie.skriptyaml.utils.yaml.SkriptClass@b3531c9

Now check in plugins/tests/test.yml what's wrong x)

You can add items in the chest if u want, maybe will generate another error ;)

Can't use yml with only Comments

Description:

  1. If there is a yaml file with only comments, skript-yaml removes comments.
  2. If there is a space next to the comment mark #, skript-yaml throws the error below.

It's not a duplicate of #29.

Code:

options:
	file: "plugins/Skript/scripts/test.yml"

command /comment [<text>]:
	trigger:
		load yaml {@file} as {@file}
		set yaml value "data" from {@file} to "test"
		save yaml {@file}

test.yml

# the comment

Console Error:

[19:39:37] [Server thread/ERROR]: #!#!
[19:39:37] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[19:39:37] [Server thread/ERROR]: #!#!
[19:39:37] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
[19:39:37] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[19:39:37] [Server thread/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[19:39:37] [Server thread/ERROR]: #!#! Here is full list of them:
[19:39:37] [Server thread/ERROR]: #!#! skript-yaml v1.4
[19:39:37] [Server thread/ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[19:39:37] [Server thread/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[19:39:37] [Server thread/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[19:39:37] [Server thread/ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[19:39:37] [Server thread/ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[19:39:37] [Server thread/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[19:39:37] [Server thread/ERROR]: #!#!
[19:39:37] [Server thread/ERROR]: #!#! Stack trace:
[19:39:37] [Server thread/ERROR]: #!#! java.lang.NullPointerException: Cannot invoke "String.startsWith(String)" because "line" is null
[19:39:37] [Server thread/ERROR]: #!#!     at me.sashie.skriptyaml.utils.yaml.YAMLProcessor.recursiveCommentSearch(YAMLProcessor.java:227)
[19:39:37] [Server thread/ERROR]: #!#!     at me.sashie.skriptyaml.utils.yaml.YAMLProcessor.recursiveCommentSearch(YAMLProcessor.java:225)
[19:39:37] [Server thread/ERROR]: #!#!     at me.sashie.skriptyaml.utils.yaml.YAMLProcessor.load(YAMLProcessor.java:180)
[19:39:37] [Server thread/ERROR]: #!#!     at me.sashie.skriptyaml.skript.EffLoadYaml.load(EffLoadYaml.java:99)
[19:39:37] [Server thread/ERROR]: #!#!     at me.sashie.skriptyaml.skript.EffLoadYaml.execute(EffLoadYaml.java:64)
[19:39:37] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:51)
[19:39:37] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:60)
[19:39:37] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:88)
[19:39:37] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:56)
[19:39:37] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:289)
[19:39:37] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:250)
[19:39:37] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:258)
[19:39:37] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:175)
[19:39:37] [Server thread/ERROR]: #!#!     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[19:39:37] [Server thread/ERROR]: #!#!     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
[19:39:37] [Server thread/ERROR]: #!#!     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[19:39:37] [Server thread/ERROR]: #!#!     at java.base/java.lang.reflect.Method.invoke(Method.java:567)
[19:39:37] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
[19:39:37] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[19:39:37] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:589)
[19:39:37] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:576)
[19:39:37] [Server thread/ERROR]: #!#!     at net.minecraft.server.network.PlayerConnection.handleCommand(PlayerConnection.java:1923)
[19:39:37] [Server thread/ERROR]: #!#!     at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1770)
[19:39:37] [Server thread/ERROR]: #!#!     at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1751)
[19:39:37] [Server thread/ERROR]: #!#!     at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:46)
[19:39:37] [Server thread/ERROR]: #!#!     at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:1)
[19:39:37] [Server thread/ERROR]: #!#!     at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:30)
[19:39:37] [Server thread/ERROR]: #!#!     at net.minecraft.server.TickTask.run(SourceFile:18)
[19:39:37] [Server thread/ERROR]: #!#!     at net.minecraft.util.thread.IAsyncTaskHandler.executeTask(SourceFile:151)
[19:39:37] [Server thread/ERROR]: #!#!     at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23)
[19:39:37] [Server thread/ERROR]: #!#!     at net.minecraft.util.thread.IAsyncTaskHandler.executeNext(SourceFile:125)
[19:39:37] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.bf(MinecraftServer.java:1148)
[19:39:37] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.executeNext(MinecraftServer.java:1141)
[19:39:37] [Server thread/ERROR]: #!#!     at net.minecraft.util.thread.IAsyncTaskHandler.awaitTasks(SourceFile:134)
[19:39:37] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.sleepForTick(MinecraftServer.java:1125)
[19:39:37] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1054)
[19:39:37] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:305)
[19:39:37] [Server thread/ERROR]: #!#!     at java.base/java.lang.Thread.run(Thread.java:831)
[19:39:37] [Server thread/ERROR]: #!#!
[19:39:37] [Server thread/ERROR]: #!#! Version Information:
[19:39:37] [Server thread/ERROR]: #!#!   Skript: 2.6-beta3 (latest)
[19:39:37] [Server thread/ERROR]: #!#!     Flavor: skriptlang-github
[19:39:37] [Server thread/ERROR]: #!#!     Date: 14:09:29.995077500
[19:39:37] [Server thread/ERROR]: #!#!   Bukkit: 1.17.1-R0.1-SNAPSHOT
[19:39:37] [Server thread/ERROR]: #!#!   Minecraft: 1.17.1
[19:39:37] [Server thread/ERROR]: #!#!   Java: 16.0.1 (Java HotSpot(TM) 64-Bit Server VM 16.0.1+9-24)
[19:39:37] [Server thread/ERROR]: #!#!   OS: Windows 10 amd64 10.0
[19:39:37] [Server thread/ERROR]: #!#!
[19:39:37] [Server thread/ERROR]: #!#! Server platform: Spigot
[19:39:37] [Server thread/ERROR]: #!#!
[19:39:37] [Server thread/ERROR]: #!#! Current node: null
[19:39:37] [Server thread/ERROR]: #!#! Current item: [re]load yaml "plugins/Skript/scripts/test.yml" as "plugins/Skript/scripts/test.yml"
[19:39:37] [Server thread/ERROR]: #!#! Current trigger: command /string (simple event) (test.sk, line 59)
[19:39:37] [Server thread/ERROR]: #!#!
[19:39:37] [Server thread/ERROR]: #!#! Thread: Server thread
[19:39:37] [Server thread/ERROR]: #!#!
[19:39:37] [Server thread/ERROR]: #!#! Language: english
[19:39:37] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
[19:39:37] [Server thread/ERROR]: #!#!
[19:39:37] [Server thread/ERROR]: #!#! End of Error.
[19:39:37] [Server thread/ERROR]: #!#!

Version:
Server Version: 3243-Spigot-6c1c1b2-d3cc412 (MC: 1.17.1)
Skript Version: 2.6-beta3
Installed Skript Addons:
skript-yaml v1.4

It also happens in skript-yaml v1.4.1.

Delete value from list

It seems that there is no straightforward way to find and remove value from yaml list. It would be great if there was an effect equivalent to:

function deleteFromYamlList(file: text, listnode: text, value: text):
  set {_list::*} to yaml list {_listnode} from {_file}
  loop {_list::*}:
    if loop-value is {_value}:
      set {_n} to loop-index parsed as number
      delete yaml index {_n} of list {_listnode} from {_file}

[Suggestion] Comments on sub nodes

Hey... sorry if this is the wrong terminology, but it would be awesome if you code add support for comments of sub nodes.
""Comments can only be at root level ie. 'root' not 'root.something'""

As you already know cause you wrote it ... you can only add comments on the root, but it would be even better if we could add comments on the root.something
ie:

# comment for my root
root:
    # comment for my something
    something: true
    # comment for something else
    something else: false

I have seen yaml files for plugins that have had that done, so I would ASSUME its possible
Im working on a huge config for a huge project, and not being able to have comments on "something" part. is really making the yaml look very cluttered.
I would appreciate this so much

Thank you for reading!

Example of what I mean by my config just looking cluttered

# No permanent flames near diamond level (there’s not enough air!)
# Players will have to get creative with their lighting, for example using dimmer redstone torches (spooky!)
# moving lava around with buckets (dangerous!)
# using glowstone (expensive!)
#  
# Players may not attach torches to loose materials like dirt, grass, and sand.
Torches:
    No Placement Under Y: 30
    Break In Rain: true
    No Placement On Soft Materials: true

Example of what I would LOVE to be able to do

Torches:
  # No permanent flames near diamond level (there’s not enough air!)
  # Players will have to get creative with their lighting, for example using dimmer redstone torches (spooky!)
  # moving lava around with buckets (dangerous!)
  # using glowstone (expensive!)
  No Placement Under Y: 30
  #Obvious - Torches will break in the rain
  Break In Rain: true
  # Players may not attach torches to loose materials like dirt, grass, and sand.
  No Placement On Soft Materials: true

I'm getting stuck

Hi

I would like to create a script which is list the coordinates whick is in the Kor.yml.

I can't loop it through because he can't understand the line, but I try some other ways but it didn't work

My code:

command /kors: trigger: loop yaml node keys "list" from "plugins/Config/Kor.yml": broadcast yaml value loop-node from loop-list

"Type of YAML node" expression

Currently, the all yaml nodes expression has no way to differentiate between yaml values and yaml lists. A type of yaml node <node> expression should either return list or value depending on which one it is.

Can't use yml with Comments

# asdf
value:

When using yml with comments, it gives the following error.

[22:42:10] [Server thread/ERROR]: #!#!
[22:42:10] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[22:42:10] [Server thread/ERROR]: #!#!
[22:42:10] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
[22:42:10] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[22:42:10] [Server thread/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[22:42:10] [Server thread/ERROR]: #!#! Here is full list of them:
[22:42:10] [Server thread/ERROR]: #!#! skRayFall v1.9.25 (https://sk.rayfall.net/) skript-gui v1.3-alpha2 (https://github.com/APickledWalrus/skript-gui) SkBee v1.11.0 (https://github.com/ShaneBeee/SkBee) skript-yaml v1.3.2 SkQuery v4.1.5 Skellett v1.9.11 (https://forums.skunity.com/resources/skellett.24/)
[22:42:10] [Server thread/ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[22:42:10] [Server thread/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[22:42:10] [Server thread/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[22:42:10] [Server thread/ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[22:42:10] [Server thread/ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[22:42:10] [Server thread/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[22:42:10] [Server thread/ERROR]: #!#!
[22:42:10] [Server thread/ERROR]: #!#! Stack trace:
[22:42:10] [Server thread/ERROR]: #!#! java.lang.NullPointerException: Cannot invoke "String.startsWith(String)" because "line" is null
[22:42:10] [Server thread/ERROR]: #!#!     at me.sashie.skriptyaml.utils.yaml.YAMLProcessor.recursiveCommentSearch(YAMLProcessor.java:225)
[22:42:10] [Server thread/ERROR]: #!#!     at me.sashie.skriptyaml.utils.yaml.YAMLProcessor.recursiveCommentSearch(YAMLProcessor.java:223)
[22:42:10] [Server thread/ERROR]: #!#!     at me.sashie.skriptyaml.utils.yaml.YAMLProcessor.load(YAMLProcessor.java:178)
[22:42:10] [Server thread/ERROR]: #!#!     at me.sashie.skriptyaml.skript.EffLoadYaml.load(EffLoadYaml.java:97)
[22:42:10] [Server thread/ERROR]: #!#!     at me.sashie.skriptyaml.skript.EffLoadYaml.execute(EffLoadYaml.java:62)
[22:42:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:51)
[22:42:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:60)
[22:42:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:88)
[22:42:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:56)
[22:42:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.function.ScriptFunction.execute(ScriptFunction.java:85)
[22:42:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.function.Function.execute(Function.java:129)
[22:42:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.function.FunctionReference.execute(FunctionReference.java:281)
[22:42:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.function.EffFunctionCall.execute(EffFunctionCall.java:52)
[22:42:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:51)
[22:42:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:60)
[22:42:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:88)
[22:42:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:56)
[22:42:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:291)
[22:42:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:250)
[22:42:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:258)
[22:42:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:175)
[22:42:10] [Server thread/ERROR]: #!#!     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[22:42:10] [Server thread/ERROR]: #!#!     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
[22:42:10] [Server thread/ERROR]: #!#!     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[22:42:10] [Server thread/ERROR]: #!#!     at java.base/java.lang.reflect.Method.invoke(Method.java:567)
[22:42:10] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
[22:42:10] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[22:42:10] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:589)
[22:42:10] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:576)
[22:42:10] [Server thread/ERROR]: #!#!     at net.minecraft.server.network.PlayerConnection.handleCommand(PlayerConnection.java:1936)
[22:42:10] [Server thread/ERROR]: #!#!     at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1783)
[22:42:10] [Server thread/ERROR]: #!#!     at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1764)
[22:42:10] [Server thread/ERROR]: #!#!     at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:46)
[22:42:10] [Server thread/ERROR]: #!#!     at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:1)
[22:42:10] [Server thread/ERROR]: #!#!     at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:30)
[22:42:10] [Server thread/ERROR]: #!#!     at net.minecraft.server.TickTask.run(SourceFile:18)
[22:42:10] [Server thread/ERROR]: #!#!     at net.minecraft.util.thread.IAsyncTaskHandler.executeTask(SourceFile:151)
[22:42:10] [Server thread/ERROR]: #!#!     at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23)
[22:42:10] [Server thread/ERROR]: #!#!     at net.minecraft.util.thread.IAsyncTaskHandler.executeNext(SourceFile:125)
[22:42:10] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.bg(MinecraftServer.java:1125)
[22:42:10] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.executeNext(MinecraftServer.java:1118)
[22:42:10] [Server thread/ERROR]: #!#!     at net.minecraft.util.thread.IAsyncTaskHandler.awaitTasks(SourceFile:134)
[22:42:10] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.sleepForTick(MinecraftServer.java:1102)
[22:42:10] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1031)
[22:42:10] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:307)
[22:42:10] [Server thread/ERROR]: #!#!     at java.base/java.lang.Thread.run(Thread.java:831)
[22:42:10] [Server thread/ERROR]: #!#!
[22:42:10] [Server thread/ERROR]: #!#! Version Information:
[22:42:10] [Server thread/ERROR]: #!#!   Skript: 2.6-alpha1 (custom version)
[22:42:10] [Server thread/ERROR]: #!#!     Flavor: selfbuilt-unknown
[22:42:10] [Server thread/ERROR]: #!#!     Date: unknown
[22:42:10] [Server thread/ERROR]: #!#!   Bukkit: 1.17-R0.1-SNAPSHOT
[22:42:10] [Server thread/ERROR]: #!#!   Minecraft: 1.17
[22:42:10] [Server thread/ERROR]: #!#!   Java: 16.0.1 (Java HotSpot(TM) 64-Bit Server VM 16.0.1+9-24)
[22:42:10] [Server thread/ERROR]: #!#!   OS: Windows 10 amd64 10.0
[22:42:10] [Server thread/ERROR]: #!#!
[22:42:10] [Server thread/ERROR]: #!#! Server platform: Spigot
[22:42:10] [Server thread/ERROR]: #!#!
[22:42:10] [Server thread/ERROR]: #!#! Current node: null
[22:42:10] [Server thread/ERROR]: #!#! Current item: [re]load yaml "plugins/Skript/scripts/Clicker.EnchantValue.yml" as "plugins/Skript/scripts/Clicker.EnchantValue.yml"
[22:42:10] [Server thread/ERROR]: #!#! Current trigger: function Debug1 (simple event) (BugReport.sk, line 9)
[22:42:10] [Server thread/ERROR]: #!#!
[22:42:10] [Server thread/ERROR]: #!#! Thread: Server thread
[22:42:10] [Server thread/ERROR]: #!#!
[22:42:10] [Server thread/ERROR]: #!#! Language: english
[22:42:10] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
[22:42:10] [Server thread/ERROR]: #!#!
[22:42:10] [Server thread/ERROR]: #!#! End of Error.
[22:42:10] [Server thread/ERROR]: #!#!

In Spigot 1.17, Skript version: 2.6-alpha1, skript-yaml version: 1.3.2

[Bug Report] load all yaml from a directory in 1.4.1

Hello, I was using the load all yaml from directory "/plugins/skript-yaml/test" syntax in 1.4 but I decided to upgrade to 1.4.1 and since then the syntax no longer works... I had put it in an on skript start and also in a command but nothing. . Thank you for your answers ! (I specify that the directory I use was and is correct.)

Doesn't want a tab for indentation

I'm in 1.12 with skript dev 36 and i have skript-yaml in 1.2.4
I have this code :

on load:
	log "a"
	load yaml "plugins/test.yml" as "config"
	log "b"

i found this : found character '\t(TAB)' that cannot start any token. (Do not use \t(TAB) for indentation)
But this is strange, in skript we must use tab for indentation, (if i put 4 spaces, i have an error)
So why the addons is asking me to remove the tab ?

[Suggestion] add value to yaml

Currently it is not possible to "add" value to yaml value.

Example:

command /addValue [<number>]:
  trigger:
    load yaml "plugins/Skript/scripts/config.yml"
    add arg 1 to yaml value "test" from "config"

Result:
yaml value "test" from "config" can't have anything added to it (BugReport.sk, line 53: add arg 1 to yaml value "test" from "config"')

It can be bypassed by set original value to (the original value + value to add) , but It's quite inconvenient, reduce readability and gets in the way of updating legacy scripts.

I would like to be able to add/remove other values to a yaml value whose value is a number.

Retrieving Value Bug(String with '__skriptclass__' not read properly)

I've got a yml value set to a large json string and my issue is that when I try to grab the string from the yml file it always returns <none>. When using a file manager I can see that everything is set correctly.

Steps to reproduce:
Use 1.16.5 Paper
Install Skript-yaml 1.4 (link)
Install Skript-json 1.1.1 (link)
Install Skript 2.6-beta2 (link)
Install Runtime Skript Addon Patcher (link)
Use the code from this paste: https://paste.helpch.at/uporuruvas.rb

Can't use on Spigot 1.16.4

Hello. I can't use this plugin on spigot 1.16.4 with skript 2.4.0. It can't creat new yaml file. Can u help me?

YML File will be wiped by itself

I was saving item into the yaml file, suddenly, my file just being wiped, didnt warned before, nothing told before, it has been to me for a couple times and it really annoyed me

[1.5 bugs] can't store YAML values in variables.

i going developed minecraft server 1.20.2 (bukkit: purpur-2095) but i have skript-yaml command error

when skript reload, not error but when i run command, happen bukkit error

my plugin list: BungeeSK, CMI, CMILib, Colorsigns, Elevator, Imags, ItemsAdder, Lonelibs, LuckPerms, ProtocalLib, Skellet, Skript, Skript-yaml, spark, Vault, VoxelSniper, WorldEdit, WorldGuard

==============================

my code(fork example):
`on script load:
load yaml "plugins/skript-yaml/teleport.yml" as "path"

command /savetp:
trigger:
set yaml value "%player%.location" from "path" to location of player
save yaml "path"

command /td:
trigger:
set {_test1} to yaml value "test1.2" from "path"
broadcast "%{_test1}%"

command /test1:
trigger:
set yaml value "test1.2a" from "path" to "value1"
save yaml "path"`

yaml file content:
`pnro:
location: !location
world: world
x: 101762.6552829032
y: 46.12268729632537
z: 1000042.4889961772
yaw: 96.4273452758789
pitch: 25.641632080078125

test1:
'1': value1
'2': value1
2a: value1`

==============================

bukkit error
`[18:54:46 ERROR]: null

org.bukkit.command.CommandException: Unhandled exception executing command 'td' in plugin Skript v2.7.3

    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[purpur-api-1.20.2-R0.1-SNAPSHOT.jar:?]

    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168) ~[purpur-api-1.20.2-R0.1-SNAPSHOT.jar:?]

    at org.bukkit.craftbukkit.v1_20_R2.CraftServer.dispatchCommand(CraftServer.java:1005) ~[purpur-1.20.2.jar:git-Purpur-2095]

    at org.bukkit.craftbukkit.v1_20_R2.command.BukkitCommandWrapper.run(BukkitCommandWrapper.java:64) ~[purpur-1.20.2.jar:git-Purpur-2095]

    at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:265) ~[purpur-1.20.2.jar:?]

    at net.minecraft.commands.Commands.performCommand(Commands.java:338) ~[?:?]

    at net.minecraft.commands.Commands.performCommand(Commands.java:322) ~[?:?]

    at net.minecraft.server.network.ServerGamePacketListenerImpl.performChatCommand(ServerGamePacketListenerImpl.java:2279) ~[?:?]

    at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$20(ServerGamePacketListenerImpl.java:2239) ~[?:?]

    at net.minecraft.util.thread.BlockableEventLoop.lambda$submitAsync$0(BlockableEventLoop.java:59) ~[?:?]

    at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]

    at net.minecraft.server.TickTask.run(TickTask.java:18) ~[purpur-1.20.2.jar:git-Purpur-2095]

    at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]

    at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]

    at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1351) ~[purpur-1.20.2.jar:git-Purpur-2095]

    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:193) ~[purpur-1.20.2.jar:git-Purpur-2095]

    at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]

    at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1328) ~[purpur-1.20.2.jar:git-Purpur-2095]

    at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1321) ~[purpur-1.20.2.jar:git-Purpur-2095]

    at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]

    at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1299) ~[purpur-1.20.2.jar:git-Purpur-2095]

    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1187) ~[purpur-1.20.2.jar:git-Purpur-2095]

    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[purpur-1.20.2.jar:git-Purpur-2095]

    at java.lang.Thread.run(Thread.java:833) ~[?:?]

Caused by: java.lang.IllegalAccessError: failed to access class net.kyori.adventure.text.serializer.bungeecord.SelfSerializable from class net.kyori.adventure.text.serializer.bungeecord.SelfSerializable$AdapterFactory (net.kyori.adventure.text.serializer.bungeecord.SelfSerializable is in unnamed module of loader 'Skript (3).jar' @d122d13; net.kyori.adventure.text.serializer.bungeecord.SelfSerializable$AdapterFactory is in unnamed module of loader 'Skript (3).jar' @54f20f68)

    at net.kyori.adventure.text.serializer.bungeecord.SelfSerializable$AdapterFactory.create(SelfSerializable.java:58) ~[Skript (3).jar:?]

    at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]

    at com.google.gson.Gson.toJson(Gson.java:834) ~[gson-2.10.1.jar:?]

    at com.google.gson.Gson.toJson(Gson.java:812) ~[gson-2.10.1.jar:?]

    at com.google.gson.Gson.toJson(Gson.java:759) ~[gson-2.10.1.jar:?]

    at com.google.gson.Gson.toJson(Gson.java:736) ~[gson-2.10.1.jar:?]

    at net.md_5.bungee.chat.ComponentSerializer.toString(ComponentSerializer.java:69) ~[bungeecord-chat-1.20-R0.1-deprecated+build.14.jar:?]

    at net.minecraft.network.protocol.game.ClientboundSystemChatPacket.improveBungeeComponentSerialization(ClientboundSystemChatPacket.java:31) ~[purpur-1.20.2.jar:git-Purpur-2095]

    at net.minecraft.network.protocol.game.ClientboundSystemChatPacket.<init>(ClientboundSystemChatPacket.java:17) ~[purpur-1.20.2.jar:git-Purpur-2095]

    at org.bukkit.craftbukkit.v1_20_R2.entity.CraftPlayer$3.sendMessage(CraftPlayer.java:3259) ~[purpur-1.20.2.jar:git-Purpur-2095]

    at org.bukkit.craftbukkit.v1_20_R2.entity.CraftPlayer$3.sendMessage(CraftPlayer.java:3247) ~[purpur-1.20.2.jar:git-Purpur-2095]

    at org.bukkit.craftbukkit.v1_20_R2.entity.CraftPlayer$3.sendMessage(CraftPlayer.java:3227) ~[purpur-1.20.2.jar:git-Purpur-2095]

    at ch.njol.skript.effects.EffBroadcast.lambda$execute$0(EffBroadcast.java:93) ~[Skript (3).jar:?]

    at java.util.ArrayList.forEach(ArrayList.java:1511) ~[?:?]

    at ch.njol.skript.effects.EffBroadcast.execute(EffBroadcast.java:93) ~[Skript (3).jar:?]

    at ch.njol.skript.lang.Effect.run(Effect.java:50) ~[Skript (3).jar:?]

    at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:62) ~[Skript (3).jar:?]

    at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:90) ~[Skript (3).jar:?]

    at ch.njol.skript.lang.Trigger.execute(Trigger.java:52) ~[Skript (3).jar:?]

    at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:316) ~[Skript (3).jar:?]

    at ch.njol.skript.command.ScriptCommand.lambda$execute$0(ScriptCommand.java:275) ~[Skript (3).jar:?]

    at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:286) ~[Skript (3).jar:?]

    at ch.njol.skript.command.ScriptCommand.onCommand(ScriptCommand.java:221) ~[Skript (3).jar:?]

    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[purpur-api-1.20.2-R0.1-SNAPSHOT.jar:?]

    ... 23 more`

getter of 'yaml value' is broken.

Debug Code:

load yaml "plugins/BlokRanks/config.yml" as "ranks_config"
set {_x} to (yaml value "sa" from "ranks_config")
broadcast "%{_x}%"
loop all yaml nodes of "ranks_config":
	broadcast "%loop-value%"

Debug Result:
image

Config:

sa: 'as'
vip:
#...

Versions:
Server: 1.16.5 Paper-783
Skript: 2.5.3
Skript-YAML: 1.4
Java: JDK 16

Errors:
No errors in the console.
No errors about skript parse.
No errors during initalize of skript and skript-yaml.

Click to see full config.yml

Node list without root string

In the previous version, I was able to use yaml nodes "messages" from "yaml" to get a node list and save it with the subnode name. However, yaml node list returns the root like messages.something which is not helpful at all.

If you're able to loop those nodes, you already have the root one, and can use rootnode.%loop-value% which is way more friendly to use.

If you can, please return back to the old node list, or add an option to get it without the root. It's way easier to add "rootnode." than to split and get the last value.
Thanks!

Issue with condition of node/path existance

https://hastebin.com/evucanefeg.sql
Works correctly (can reload many times with no errors), but if I change the
yaml "version" in "config" does not exist:
to
yaml node "version" in "config" does not exist:
I am greeted with an error on the console on the 2nd (and every other) reload of the script:
https://hastebin.com/nosuwufope.md

Step by step:

  • check if Mobs folder doesn't exist if not, delete it
  • load script with the node part in the condition
  • reload the script

Breaking changes with the new update

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

1.20

Does not work on 1.20.

java.lang.ArrayIndexOutOfBoundsException

I can't save some new players. I'm storing them as text on quit event like add "%player%" to {dummySaves::*} and I execute this block every 4 minutes:

every 2 minutes:
	async
	loop {dummySaves::*}:
		if loop-value isn't text:
			stop
		if yaml "ps-%loop-value%" is loaded:
			save yaml "ps-%loop-value%"
			wait a tick
			unload yaml "ps-%loop-value%"
		set {_dummySave::%loop-value%} to true
		remove loop-value from {dummySaves::*}
		async wait a tick

This issue occured when I upgrade Skript 2.5.3 to Skript 2.6-beta2. I tried Java 11 and Java 16. I'm using Purpur 1.16.5 server.

Also, for example Sashie is new player. When Sashie join, plugins/Skript/playersaves/Sashie loaded as ps-Sashie. After Sashie setting home, etc. etc. And after the quit server console catching ArrayIndexOutOfBoundsException error and {dummySaves::*} loop don't continue until I unload "ps-Sashie"(I can't save even with effect commands).

And I'm, rudde, not a new player. I'm joining and I continue to play. My yml file is fine. If dummySaves executing before Sashie's case, datas which belong to me are saving.

I tried do it without async too. Nothing changed.

[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! 
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! [Skript] Severe Error:
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! 
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! Something went horribly wrong with Skript.
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! Following plugins are probably related to this error in some way:
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! MundoSK-Async 
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! 
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! Stack trace:
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! java.lang.ArrayIndexOutOfBoundsException: Index 13 out of bounds for length 13
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#!     at java.base/java.util.LinkedHashMap.keysToArray(LinkedHashMap.java:545)
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#!     at java.base/java.util.LinkedHashMap$LinkedKeySet.toArray(LinkedHashMap.java:581)
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#!     at me.sashie.skriptyaml.utils.yaml.YAMLProcessor.save(YAMLProcessor.java:328)
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#!     at me.sashie.skriptyaml.skript.EffSaveYaml.execute(EffSaveYaml.java:47)
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:51)
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:60)
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:88)
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#!     at me.nanodn.mundoskasync.EffAsync.lambda$walk$0(EffAsync.java:45)
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:100)
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:58)
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#!     at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#!     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#!     at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#!     at java.base/java.lang.Thread.run(Thread.java:831)
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! 
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! Version Information:
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#!   Skript: 2.6-beta2
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#!     Flavor: selfbuilt-unknown
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#!     Date: unknown
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#!   Bukkit: 1.16.5-R0.1-SNAPSHOT
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#!   Minecraft: 1.16.5
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#!   Java: 16.0.2 (OpenJDK 64-Bit Server VM 16.0.2+7-jvmci-21.2-b08)
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#!   OS: Linux amd64 5.4.0-80-generic
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! 
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! Server platform: Paper
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! 
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! Current node: null
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! Current item: save yaml "ps-%loop-value%"
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! Current trigger: every 2 minutes (every 2 minutes) (SeasonTimer.sk, line 111)
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! 
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! Thread: Craft Scheduler Thread - 664 - MundoSK-Async
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! 
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! Language: english
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! Link parse mode: STRICT
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! 
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#! End of Error.
[08:52:09] [Craft Scheduler Thread - 664 - MundoSK-Async/ERROR]: #!#!

Bug: Delete all yaml files is broken

How to reproduce:

command test:
	trigger:
		delete all yaml from directory "plugins/Config/Zaubermarkt"

Error:

[21:00:25 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'test' in plugin Skript v2.7.2
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[purpur-api-1.20.1-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168) ~[purpur-api-1.20.1-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_20_R1.CraftServer.dispatchCommand(CraftServer.java:1001) ~[purpur-1.20.1.jar:git-Purpur-2062]
        at org.bukkit.craftbukkit.v1_20_R1.command.BukkitCommandWrapper.run(BukkitCommandWrapper.java:64) ~[purpur-1.20.1.jar:git-Purpur-2062]
        at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:265) ~[purpur-1.20.1.jar:?]
        at net.minecraft.commands.Commands.performCommand(Commands.java:332) ~[?:?]
        at net.minecraft.commands.Commands.performCommand(Commands.java:316) ~[?:?]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.performChatCommand(ServerGamePacketListenerImpl.java:2447) ~[?:?]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$22(ServerGamePacketListenerImpl.java:2407) ~[?:?]
        at net.minecraft.util.thread.BlockableEventLoop.lambda$submitAsync$0(BlockableEventLoop.java:59) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
        at net.minecraft.server.TickTask.run(TickTask.java:18) ~[purpur-1.20.1.jar:git-Purpur-2062]
        at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
        at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
        at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1365) ~[purpur-1.20.1.jar:git-Purpur-2062]
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197) ~[purpur-1.20.1.jar:git-Purpur-2062]
        at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
        at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1342) ~[purpur-1.20.1.jar:git-Purpur-2062]
        at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1335) ~[purpur-1.20.1.jar:git-Purpur-2062]
        at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
        at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1313) ~[purpur-1.20.1.jar:git-Purpur-2062]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1201) ~[purpur-1.20.1.jar:git-Purpur-2062]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:322) ~[purpur-1.20.1.jar:git-Purpur-2062]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.NoSuchFieldError: delayed
        at me.sashie.skriptyaml.DelayFork.addDelayedEvent(DelayFork.java:10) ~[skript-yaml-1.5.jar:?]
        at me.sashie.skriptyaml.AsyncEffectOld.walk(AsyncEffectOld.java:29) ~[skript-yaml-1.5.jar:?]
        at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:90) ~[Skript.jar:?]
        at ch.njol.skript.lang.Trigger.execute(Trigger.java:52) ~[Skript.jar:?]
        at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:316) ~[Skript.jar:?]
        at ch.njol.skript.command.ScriptCommand.lambda$execute$0(ScriptCommand.java:275) ~[Skript.jar:?]
        at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:286) ~[Skript.jar:?]
        at ch.njol.skript.command.ScriptCommand.onCommand(ScriptCommand.java:221) ~[Skript.jar:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[purpur-api-1.20.1-R0.1-SNAPSHOT.jar:?]
        ... 23 more

Skript Info:

[21:03:24 INFO]: [Skript] Server Version: git-Purpur-2062 (MC: 1.20.1)
[21:03:24 INFO]: [Skript] Skript Version: 2.7.2 (skriptlang-github)
[21:03:24 INFO]: [Skript] Installed Skript Addons:
[21:03:24 INFO]: [Skript]  - SkUniversal v2.13
[21:03:24 INFO]: [Skript]  - skript-yaml v1.5
[21:03:24 INFO]: [Skript]  - skript-reflect v2.3 (https://github.com/TPGamesNL/skript-reflect)
[21:03:24 INFO]: [Skript]  - skript-db v1.3.6
[21:03:24 INFO]: [Skript]  - skRayFall v1.9.28 (https://sk.rayfall.net/)
[21:03:24 INFO]: [Skript]  - SkBee v2.18.4 (https://github.com/ShaneBeee/SkBee)
[21:03:24 INFO]: [Skript]  - ItemsAdder v3.5.0c-r5b (devs.beer)
[21:03:24 INFO]: [Skript] Installed dependencies:
[21:03:24 INFO]: [Skript]  - WorldGuard v7.0.9-SNAPSHOT+2250-fffb0c1
[21:03:24 INFO]: [Skript]  - GriefPrevention v16.18.1-7-g64b348a

(I have tested version 1.4.1 and 1.5.0, same outcome)

ArrayIndexOutOfBoundsException

Attempting to use code:

command /test:
	trigger:
		message "%all of the currently loaded yaml files%"
		load yaml "plugins/test/test.yml" as "test"

however in console receive error

07.04 19:34:22 [Server] WARN Plugin Skript v2.2-dev34 generated an exception while executing task 101
07.04 19:34:22 [Server] INFO java.lang.ArrayIndexOutOfBoundsException: 0
07.04 19:34:22 [Server] INFO at sun.nio.fs.UnixPath.normalize(UnixPath.java:508) ~[?:1.8.0_05]
07.04 19:34:22 [Server] INFO at me.sashie.skriptyaml.skript.EffLoadYaml.execute(EffLoadYaml.java:81) ~[?:?]
07.04 19:34:22 [Server] INFO at me.sashie.skriptyaml.AsyncEffectOld.access$0(AsyncEffectOld.java:1) ~[?:?]
07.04 19:34:22 [Server] INFO at me.sashie.skriptyaml.AsyncEffectOld$1.run(AsyncEffectOld.java:36) ~[?:?]
07.04 19:34:22 [Server] INFO at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot-1.12.2.jar:git-Spigot-93e20b3-31d3159]
07.04 19:34:22 [Server] INFO at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52) [spigot-1.12.2.jar:git-Spigot-93e20b3-31d3159]
07.04 19:34:22 [Server] INFO at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_05]
07.04 19:34:22 [Server] INFO at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_05]
07.04 19:34:22 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_05]

Adding WorldGuard Region to YAML list returns an Internal Error

I am trying to save a WorldGuard region to a YAML file with the following code:

options:
  config: plugins/SKPlayground/config.yml

on script load:
  load yaml "{@config}" as "config"
  
command /saveregion:
  trigger:
    set yaml list "regions.%player%" from "config" to region at player
    save yaml "config"

It returns an internal error message when it reaches save yaml "config" saying that the current node is null

[20:12:51 ERROR]: #!#!
[20:12:51 ERROR]: #!#! [Skript] Severe Error:
[20:12:51 ERROR]: #!#!
[20:12:51 ERROR]: #!#! Something went horribly wrong with Skript.
[20:12:51 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[20:12:51 ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[20:12:51 ERROR]: #!#! Here is full list of them:
[20:12:51 ERROR]: #!#! skript-yaml
[20:12:51 ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[20:12:51 ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[20:12:51 ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[20:12:51 ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[20:12:51 ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[20:12:51 ERROR]: #!#! Only if the author tells you to do so, report it as Skript issue (url below)
[20:12:51 ERROR]: #!#! Issue tracker: https://github.com/SkriptLang/Skript/issues (only if you know what you're doing!)
[20:12:51 ERROR]: #!#!
[20:12:51 ERROR]: #!#! Stack trace:
[20:12:51 ERROR]: #!#! ch.njol.skript.SkriptAPIException: Serializer of region must override newInstance(), canBeInstantiated() or mustSyncDeserialization() if its class does not have a nullary constructor
[20:12:51 ERROR]: #!#!     at ch.njol.skript.classes.Serializer.newInstance(Serializer.java:78)
[20:12:51 ERROR]: #!#!     at ch.njol.yggdrasil.Yggdrasil.newInstance(Yggdrasil.java:320)
[20:12:51 ERROR]: #!#!     at ch.njol.yggdrasil.Yggdrasil.isSerializable(Yggdrasil.java:155)
[20:12:51 ERROR]: #!#!     at ch.njol.yggdrasil.YggdrasilOutputStream.writeGenericObject(YggdrasilOutputStream.java:167)
[20:12:51 ERROR]: #!#!     at ch.njol.yggdrasil.YggdrasilOutputStream.writeObject(YggdrasilOutputStream.java:247)
[20:12:51 ERROR]: #!#!     at ch.njol.skript.registrations.Classes.serialize(Classes.java:706)
[20:12:51 ERROR]: #!#!     at me.sashie.skriptyaml.utils.yaml.YAMLProcessor.serialize(YAMLProcessor.java:372)
[20:12:51 ERROR]: #!#!     at me.sashie.skriptyaml.utils.yaml.YAMLProcessor.serialize(YAMLProcessor.java:369)
[20:12:51 ERROR]: #!#!     at me.sashie.skriptyaml.utils.yaml.YAMLProcessor.serialize(YAMLProcessor.java:365)
[20:12:51 ERROR]: #!#!     at me.sashie.skriptyaml.utils.yaml.YAMLProcessor.save(YAMLProcessor.java:316)
[20:12:51 ERROR]: #!#!     at me.sashie.skriptyaml.skript.EffSaveYaml.execute(EffSaveYaml.java:45)

[20:12:51 ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:52)
[20:12:51 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
[20:12:51 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[20:12:51 ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:55)
[20:12:51 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:294)
[20:12:51 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:251)

[20:12:51 ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:257)
[20:12:51 ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:172)

[20:12:51 ERROR]: #!#!     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[20:12:51 ERROR]: #!#!     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[20:12:51 ERROR]: #!#!     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[20:12:51 ERROR]: #!#!     at java.lang.reflect.Method.invoke(Unknown Source)
[20:12:51 ERROR]: #!#!     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302)
[20:12:51 ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[20:12:51 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500)
[20:12:51 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485)
[20:12:51 ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1389)
[20:12:51 ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1232)
[20:12:51 ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45)
[20:12:51 ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:1)
[20:12:51 ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13)
[20:12:51 ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [20:12:51 ERROR]: #!#!     at java.util.concurrent.FutureTask.run(Unknown Source)
[20:12:51 ERROR]: #!#!     at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46)
[20:12:51 ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748)
[20:12:51 ERROR]: #!#!     at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406)
[20:12:51 ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679)
[20:12:51 ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577)
[20:12:51 ERROR]: #!#!     at java.lang.Thread.run(Unknown Source)
[20:12:51 ERROR]: #!#!
[20:12:51 ERROR]: #!#! Version Information:
[20:12:51 ERROR]: #!#!   Skript: 2.2-dev37c (latest)
[20:12:51 ERROR]: #!#!   Bukkit: 1.12.2-R0.1-SNAPSHOT
[20:12:51 ERROR]: #!#!   Minecraft: 1.12.2
[20:12:51 ERROR]: #!#!   Java: 1.8.0_181 (Java HotSpot(TM) 64-Bit Server VM 25.181-b13)
[20:12:51 ERROR]: #!#!   OS: Windows 10 amd64 10.0
[20:12:51 ERROR]: #!#!
[20:12:51 ERROR]: #!#! Server platform: Spigot
[20:12:51 ERROR]: #!#!
[20:12:51 ERROR]: #!#! Current node: null
[20:12:51 ERROR]: #!#! Current item: save yaml "config"
[20:12:51 ERROR]: #!#! Current trigger: command /saveregion (simple event) (playground.sk, line -1)
[20:12:51 ERROR]: #!#!
[20:12:51 ERROR]: #!#! Thread: Server thread
[20:12:51 ERROR]: #!#!
[20:12:51 ERROR]: #!#! Language: english
[20:12:51 ERROR]: #!#! Link parse mode: DISABLED
[20:12:51 ERROR]: #!#!
[20:12:51 ERROR]: #!#! End of Error.
[20:12:51 ERROR]: #!#!

Updating Skript from v2.5.3 to v2.6-beta3 somehow broke loop-list

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

[Bug] Can't remove value from yaml list

Description:
Can't remove value from yaml list.

Code:

options:
	file: "plugins/Skript/scripts/test.yml"

command /yaml [<text>] [<text>]:
	trigger:
		load yaml {@file} as {@file}
		set {_data} to "a"
		if arg 1 is "add":
			add {_data} to yaml list "user" from {@file}
		if arg 1 is "remove":
			remove {_data} from yaml list "user" from {@file}

Expected Result:
The value should be removed from the list.

Console Error:

[00:14:22] [Server thread/ERROR]: #!#!
[00:14:22] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[00:14:22] [Server thread/ERROR]: #!#!
[00:14:22] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
[00:14:22] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[00:14:22] [Server thread/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[00:14:22] [Server thread/ERROR]: #!#! Here is full list of them:
[00:14:22] [Server thread/ERROR]: #!#! skript-yaml v1.4
[00:14:22] [Server thread/ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[00:14:22] [Server thread/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[00:14:22] [Server thread/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[00:14:22] [Server thread/ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[00:14:22] [Server thread/ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[00:14:22] [Server thread/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[00:14:22] [Server thread/ERROR]: #!#!
[00:14:22] [Server thread/ERROR]: #!#! Stack trace:
[00:14:22] [Server thread/ERROR]: #!#! java.lang.NullPointerException: Cannot invoke "java.util.List.remove(Object)" because "objects" is null
[00:14:22] [Server thread/ERROR]: #!#!     at me.sashie.skriptyaml.skript.ExprYaml.change(ExprYaml.java:261)
[00:14:22] [Server thread/ERROR]: #!#!     at ch.njol.skript.effects.EffChange.execute(EffChange.java:282)
[00:14:22] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:51)
[00:14:22] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:60)
[00:14:22] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:88)
[00:14:22] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:56)
[00:14:22] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:289)
[00:14:22] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:250)
[00:14:22] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:258)
[00:14:22] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:175)
[00:14:22] [Server thread/ERROR]: #!#!     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[00:14:22] [Server thread/ERROR]: #!#!     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
[00:14:22] [Server thread/ERROR]: #!#!     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[00:14:22] [Server thread/ERROR]: #!#!     at java.base/java.lang.reflect.Method.invoke(Method.java:567)
[00:14:22] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
[00:14:22] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[00:14:22] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:589)
[00:14:22] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:576)
[00:14:22] [Server thread/ERROR]: #!#!     at net.minecraft.server.network.PlayerConnection.handleCommand(PlayerConnection.java:1923)
[00:14:22] [Server thread/ERROR]: #!#!     at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1770)
[00:14:22] [Server thread/ERROR]: #!#!     at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1751)
[00:14:22] [Server thread/ERROR]: #!#!     at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:46)
[00:14:22] [Server thread/ERROR]: #!#!     at net.minecraft.network.protocol.game.PacketPlayInChat.a(PacketPlayInChat.java:1)
[00:14:22] [Server thread/ERROR]: #!#!     at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:30)
[00:14:22] [Server thread/ERROR]: #!#!     at net.minecraft.server.TickTask.run(SourceFile:18)
[00:14:22] [Server thread/ERROR]: #!#!     at net.minecraft.util.thread.IAsyncTaskHandler.executeTask(SourceFile:151)
[00:14:22] [Server thread/ERROR]: #!#!     at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23)
[00:14:22] [Server thread/ERROR]: #!#!     at net.minecraft.util.thread.IAsyncTaskHandler.executeNext(SourceFile:125)
[00:14:22] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.bf(MinecraftServer.java:1148)
[00:14:22] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.executeNext(MinecraftServer.java:1141)
[00:14:22] [Server thread/ERROR]: #!#!     at net.minecraft.util.thread.IAsyncTaskHandler.awaitTasks(SourceFile:134)
[00:14:22] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.sleepForTick(MinecraftServer.java:1125)
[00:14:22] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1054)
[00:14:22] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:305)
[00:14:22] [Server thread/ERROR]: #!#!     at java.base/java.lang.Thread.run(Thread.java:831)
[00:14:22] [Server thread/ERROR]: #!#!
[00:14:22] [Server thread/ERROR]: #!#! Version Information:
[00:14:22] [Server thread/ERROR]: #!#!   Skript: 2.6-beta3 (latest)
[00:14:22] [Server thread/ERROR]: #!#!     Flavor: skriptlang-github
[00:14:22] [Server thread/ERROR]: #!#!     Date: 14:09:29.995077500
[00:14:22] [Server thread/ERROR]: #!#!   Bukkit: 1.17.1-R0.1-SNAPSHOT
[00:14:22] [Server thread/ERROR]: #!#!   Minecraft: 1.17.1
[00:14:22] [Server thread/ERROR]: #!#!   Java: 16.0.1 (Java HotSpot(TM) 64-Bit Server VM 16.0.1+9-24)
[00:14:22] [Server thread/ERROR]: #!#!   OS: Windows 10 amd64 10.0
[00:14:22] [Server thread/ERROR]: #!#!
[00:14:22] [Server thread/ERROR]: #!#! Server platform: Spigot
[00:14:22] [Server thread/ERROR]: #!#!
[00:14:22] [Server thread/ERROR]: #!#! Current node: null
[00:14:22] [Server thread/ERROR]: #!#! Current item: remove {_data}(as java.lang.Object) from yaml list "user" from "plugins/Skript/scripts/test.yml"
[00:14:22] [Server thread/ERROR]: #!#! Current trigger: command /yaml (simple event) (test.sk, line 5)
[00:14:22] [Server thread/ERROR]: #!#!
[00:14:22] [Server thread/ERROR]: #!#! Thread: Server thread
[00:14:22] [Server thread/ERROR]: #!#!
[00:14:22] [Server thread/ERROR]: #!#! Language: english
[00:14:22] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
[00:14:22] [Server thread/ERROR]: #!#!
[00:14:22] [Server thread/ERROR]: #!#! End of Error.
[00:14:22] [Server thread/ERROR]: #!#!

Version:
Server Version: 3243-Spigot-6c1c1b2-d3cc412 (MC: 1.17.1)
Skript Version: 2.6-beta3
skript-yaml Version: v1.4

Issue with all first nodes

set {_indexes::*} to skript-yml nodes "" of "config"
Used to work to get all the first nodes from the file in version 1.0.5. Updated to 1.1.2

Example file

version: 1.0
this:
  and:
    value: 1

Used to return
version and this

Now it returns
version and this.and.value

Setting locations not work

Setting locations not work, with the new version of skript(2.3-beta1)

command test:
	trigger:
		load yaml "plugins/test.yml" as "test"
		set yaml value "loc" from "test" to location of player
		save yaml "test"
[21:59:24 ERROR]: Could not pass event PlayerCommandPreprocessEvent to Skript v2.3-beta1
org.bukkit.event.EventException: null
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:308) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at net.minecraft.server.v1_13_R2.PlayerConnection.handleCommand(PlayerConnection.java:1638) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at net.minecraft.server.v1_13_R2.PlayerConnection.a(PlayerConnection.java:1481) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at net.minecraft.server.v1_13_R2.PacketPlayInChat.a(PacketPlayInChat.java:45) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at net.minecraft.server.v1_13_R2.PacketPlayInChat.a(PacketPlayInChat.java:1) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at net.minecraft.server.v1_13_R2.PlayerConnectionUtils.a(SourceFile:10) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_171]
        at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_171]
        at net.minecraft.server.v1_13_R2.SystemUtils.a(SourceFile:199) [spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:900) [spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:417) [spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:835) [spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:733) [spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_171]
Caused by: java.lang.NoSuchMethodError: me.sashie.skriptyaml.utils.yaml.SkriptYamlRepresenter.representMapping(Lorg/yaml/snakeyaml/nodes/Tag;Ljava/util/Map;Ljava/lang/Boolean;)Lorg/yaml/snakeyaml/nodes/Node;
        at me.sashie.skriptyaml.utils.yaml.SkriptYamlRepresenter.access$4(SkriptYamlRepresenter.java:1) ~[?:?]
        at me.sashie.skriptyaml.utils.yaml.SkriptYamlRepresenter$RepresentLocation.representData(SkriptYamlRepresenter.java:106) ~[?:?]
        at org.yaml.snakeyaml.representer.BaseRepresenter.representData(BaseRepresenter.java:89) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at org.yaml.snakeyaml.representer.BaseRepresenter.representMapping(BaseRepresenter.java:157) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at org.yaml.snakeyaml.representer.SafeRepresenter$RepresentMap.representData(SafeRepresenter.java:315) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at org.yaml.snakeyaml.representer.BaseRepresenter.representData(BaseRepresenter.java:95) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at org.yaml.snakeyaml.representer.BaseRepresenter.represent(BaseRepresenter.java:65) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at org.yaml.snakeyaml.Yaml.dumpAll(Yaml.java:306) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at org.yaml.snakeyaml.Yaml.dump(Yaml.java:285) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at me.sashie.skriptyaml.utils.yaml.YAMLProcessor.save(YAMLProcessor.java:316) ~[?:?]
        at me.sashie.skriptyaml.skript.EffSaveYaml.execute(EffSaveYaml.java:45) ~[?:?]
        at ch.njol.skript.lang.Effect.run(Effect.java:52) ~[?:?]
        at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61) ~[?:?]
        at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89) ~[?:?]
        at ch.njol.skript.lang.Trigger.execute(Trigger.java:57) ~[?:?]
        at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:285) ~[?:?]
        at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:242) ~[?:?]
        at ch.njol.skript.command.Commands.handleCommand(Commands.java:257) ~[?:?]
        at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:172) ~[?:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_171]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_171]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_171]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_171]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        ... 16 more
[21:59:24 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'test' in plugin Skript v2.3-beta1
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at org.bukkit.craftbukkit.v1_13_R2.CraftServer.dispatchCommand(CraftServer.java:699) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at net.minecraft.server.v1_13_R2.PlayerConnection.handleCommand(PlayerConnection.java:1646) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at net.minecraft.server.v1_13_R2.PlayerConnection.a(PlayerConnection.java:1481) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at net.minecraft.server.v1_13_R2.PacketPlayInChat.a(PacketPlayInChat.java:45) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at net.minecraft.server.v1_13_R2.PacketPlayInChat.a(PacketPlayInChat.java:1) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at net.minecraft.server.v1_13_R2.PlayerConnectionUtils.a(SourceFile:10) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_171]
        at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_171]
        at net.minecraft.server.v1_13_R2.SystemUtils.a(SourceFile:199) [spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:900) [spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:417) [spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:835) [spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:733) [spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_171]
Caused by: java.lang.NoSuchMethodError: me.sashie.skriptyaml.utils.yaml.SkriptYamlRepresenter.representMapping(Lorg/yaml/snakeyaml/nodes/Tag;Ljava/util/Map;Ljava/lang/Boolean;)Lorg/yaml/snakeyaml/nodes/Node;
        at me.sashie.skriptyaml.utils.yaml.SkriptYamlRepresenter.access$4(SkriptYamlRepresenter.java:1) ~[?:?]
        at me.sashie.skriptyaml.utils.yaml.SkriptYamlRepresenter$RepresentLocation.representData(SkriptYamlRepresenter.java:106) ~[?:?]
        at org.yaml.snakeyaml.representer.BaseRepresenter.representData(BaseRepresenter.java:89) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at org.yaml.snakeyaml.representer.BaseRepresenter.representMapping(BaseRepresenter.java:157) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at org.yaml.snakeyaml.representer.SafeRepresenter$RepresentMap.representData(SafeRepresenter.java:315) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at org.yaml.snakeyaml.representer.BaseRepresenter.representData(BaseRepresenter.java:95) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at org.yaml.snakeyaml.representer.BaseRepresenter.represent(BaseRepresenter.java:65) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at org.yaml.snakeyaml.Yaml.dumpAll(Yaml.java:306) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at org.yaml.snakeyaml.Yaml.dump(Yaml.java:285) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        at me.sashie.skriptyaml.utils.yaml.YAMLProcessor.save(YAMLProcessor.java:316) ~[?:?]
        at me.sashie.skriptyaml.skript.EffSaveYaml.execute(EffSaveYaml.java:45) ~[?:?]
        at ch.njol.skript.lang.Effect.run(Effect.java:52) ~[?:?]
        at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61) ~[?:?]
        at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89) ~[?:?]
        at ch.njol.skript.lang.Trigger.execute(Trigger.java:57) ~[?:?]
        at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:285) ~[?:?]
        at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:242) ~[?:?]
        at ch.njol.skript.command.ScriptCommand.onCommand(ScriptCommand.java:193) ~[?:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot.jar:git-Spigot-a1ba5fe-b4230a9]
        ... 15 more

Cant write EntityType to yaml

When I try to write org.bukkit.entity.EntityType in yaml an empty entry is created in the list, or an empty value in the entry
Like this:

entities:

entity:

Code:
on rightclick:
if clicked entity is set:
load yaml "someyaml.yml" as "yaml"
set yaml value "entity" from "yaml" to (clicked entity).getType()
save yaml "yaml"
unload "yaml"

Purpur 1.16.5, Skript 2.5.3, latest Skript-yaml (the previous version had a similar problem), Skript-reflect 2.2.2
And surprisingly, everything works fine with the %block%.getType()

[Suggestion] Changing IDs and Getting All Yamls from a Directory

Hello,
I would like to suggest that you add an effect to change the ID of a yaml. For example, you might be able to do change [y[a]ml] id [from] %string% to %string%

Also, I would like to suggest that an expression is added to get all of the yamls (both loaded and unloaded) in a certain directory.

Error starting server - 1.20

Greetings! I installed script-yaml on the server, but as soon as it is enabled it is consequently disabled, followed by an error (attached in .txt file)
Software server: PaperMC - 1.20
error_plugin.txt

Question.

How do you check if a YAML list contains a specific item?

Non-scalar node limit exceeded by storing multiple crossbows loaded with fireworks.

I'm using YML to do inventory backups and ran into an issue with crossbows loaded with fireworks.
In the attached yml, once there are three crossbows, the non-scalar node limit is exceeded and I'm unable to load the yml.
The limit seems configurable, and I'd appreciate if it were raised a bit. However, 250 lines of yml for one item is a bit much so i'm going to pursue other ways of getting around this too, like only storing the unloaded crossbow.

Skript info

[23:42:58 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[23:42:58 INFO]: [Skript] Skript's documentation can be found here: https://skriptlang.github.io/Skript
[23:42:58 INFO]: [Skript] Server Version: git-Paper-250 (MC: 1.18.2)
[23:42:58 INFO]: [Skript] Skript Version: 2.6.1-nightly-1737295
[23:42:58 INFO]: [Skript] Installed Skript Addons:
[23:42:58 INFO]: [Skript]  - skript-yaml v1.4
[23:42:58 INFO]: [Skript]  - skript-reflect v2.3 (https://github.com/TPGamesNL/skript-reflect)
[23:42:58 INFO]: [Skript]  - SkBee v1.15.1 (https://github.com/ShaneBeee/SkBee)
[23:42:58 INFO]: [Skript]  - sk-discord v1.0
[23:42:58 INFO]: [Skript] Installed dependencies:
[23:42:58 INFO]: [Skript]  - WorldGuard v7.0.4+f7ff984

Console Error

[23:38:27 ERROR]: #!#!
[23:38:27 ERROR]: #!#! [Skript] Severe Error:
[23:38:27 ERROR]: #!#!
[23:38:27 ERROR]: #!#! You're running a (buggy) nightly version of Skript.
[23:38:27 ERROR]: #!#! If this is not a test server, switch to a more stable release NOW!
[23:38:27 ERROR]: #!#! Your players are unlikely to appreciate crashes and/or data loss due to Skript bugs.
[23:38:27 ERROR]: #!#!
[23:38:27 ERROR]: #!#! Just testing things? Good. Please report this bug, so that we can fix it before a stable release.
[23:38:27 ERROR]: #!#! Issue tracker: https://github.com/SkriptLang/Skript/issues
[23:38:27 ERROR]: #!#!
[23:38:27 ERROR]: #!#! Stack trace:
[23:38:27 ERROR]: #!#! org.yaml.snakeyaml.error.YAMLException: Number of aliases for non-scalar nodes exceeds the specified max=50
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:172)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:314)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:305)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:286)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:188)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:245)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:186)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:314)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:305)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:286)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:188)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:314)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:305)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:286)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:188)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:245)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:186)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:314)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:305)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:286)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:188)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:314)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:305)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:286)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:188)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:245)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:186)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:314)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:305)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:286)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:188)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.getNode(Composer.java:115)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:142)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:151)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:491)
[23:38:27 ERROR]: #!#!     at org.yaml.snakeyaml.Yaml.load(Yaml.java:416)
[23:38:27 ERROR]: #!#!     at skript-yaml.jar//me.sashie.skriptyaml.utils.yaml.YAMLProcessor.load(YAMLProcessor.java:183)
[23:38:27 ERROR]: #!#!     at skript-yaml.jar//me.sashie.skriptyaml.skript.EffLoadYaml.load(EffLoadYaml.java:99)
[23:38:27 ERROR]: #!#!     at skript-yaml.jar//me.sashie.skriptyaml.skript.EffLoadYaml.execute(EffLoadYaml.java:67)
[23:38:27 ERROR]: #!#!     at Skript-nightly.jar//ch.njol.skript.lang.Effect.run(Effect.java:51)
[23:38:27 ERROR]: #!#!     at Skript-nightly.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:60)
[23:38:27 ERROR]: #!#!     at Skript-nightly.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:88)
[23:38:27 ERROR]: #!#!     at Skript-nightly.jar//ch.njol.skript.command.Commands.handleEffectCommand(Commands.java:283)
[23:38:27 ERROR]: #!#!     at Skript-nightly.jar//ch.njol.skript.command.Commands$3$1.call(Commands.java:217)
[23:38:27 ERROR]: #!#!     at Skript-nightly.jar//ch.njol.skript.command.Commands$3$1.call(Commands.java:214)
[23:38:27 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftFuture.run(CraftFuture.java:88)
[23:38:27 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483)
[23:38:27 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1531)
[23:38:27 ERROR]: #!#!     at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:483)
[23:38:27 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1455)
[23:38:27 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1225)
[23:38:27 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:315)
[23:38:27 ERROR]: #!#!     at java.base/java.lang.Thread.run(Thread.java:833)
[23:38:27 ERROR]: #!#!
[23:38:27 ERROR]: #!#! Version Information:
[23:38:27 ERROR]: #!#!   Skript: 2.6.1-nightly-1737295
[23:38:27 ERROR]: #!#!     Flavor: skriptlang-nightly
[23:38:27 ERROR]: #!#!     Date: 12:33:42.706900446
[23:38:27 ERROR]: #!#!   Bukkit: 1.18.2-R0.1-SNAPSHOT
[23:38:27 ERROR]: #!#!   Minecraft: 1.18.2
[23:38:27 ERROR]: #!#!   Java: 17.0.2 (OpenJDK 64-Bit Server VM 17.0.2+8)
[23:38:27 ERROR]: #!#!   OS: Windows 10 amd64 10.0
[23:38:27 ERROR]: #!#!
[23:38:27 ERROR]: #!#! Server platform: Paper
[23:38:27 ERROR]: #!#!
[23:38:27 ERROR]: #!#! Current node: null
[23:38:27 ERROR]: #!#! Current item: [re]load yaml "test.yml"
[23:38:27 ERROR]: #!#!
[23:38:27 ERROR]: #!#! Thread: Server thread
[23:38:27 ERROR]: #!#!
[23:38:27 ERROR]: #!#! Language: english
[23:38:27 ERROR]: #!#! Link parse mode: DISABLED
[23:38:27 ERROR]: #!#!
[23:38:27 ERROR]: #!#! End of Error.
[23:38:27 ERROR]: #!#!

Used code:

!load yaml "test.yml"
# if you only have 2 crossbows in yml
!set {a::*} to (yml list "test" from "test")
!give {a::*} to player

Used Yaml:
test.txt

Always convert strings containing & to §

Description:

  1. In Skript, the arguments of the command are converted to uncolored strings. (&atest)
  2. In skript-yaml, colorless string containing & are converted to uncolored string with "" ("&atest")
  3. When loading yaml value, skript-yaml always converts & to §. (§atest)
  4. This is usually not a problem when sending values to chat, but it causes problems in the following cases.

Code:

options:
	debug: &r[&bDebug&r]
	file: "plugins/Skript/scripts/test.yml"

command /yaml [<text>] [<text>]:
	trigger:
		set {_uuid} to uuid of player
		if arg 1 is "addparty":
			arg 2 is set
			load yaml {@file} as {@file}
			set {_party} to arg 2
			set yaml value "user.%{_uuid}%" from {@file} to {_party}
			add {_uuid} to yaml list "data.%{_party}%.user" from {@file}
			send "{@debug} Add Party %{_party}%"
			save yaml {@file}
			stop
		if arg 1 is "removeparty":
			arg 2 is set
			load yaml {@file} as {@file}
			set {_party} to arg 2
			clear yaml value "user.%{_uuid}%" from {@file}
			clear yaml list "data.%{_party}%.user" from {@file}
			send "{@debug} Remove Party %{_party}%"
			save yaml {@file}
			stop
		if arg 1 is "addplayer":
			yamlAddPlayer(player)
			stop
		if arg 1 is "removeplayer":
			yamlRemovePlayer(player)
			stop

function yamlAddPlayer(name: player):
	load yaml {@file} as {@file}
	set {_uuid} to uuid of {_name}
	set {_party} to yaml value "user.%{_uuid}%" from {@file} # Automatic detect player's party and problem is here
	send "{@debug} Add your UUID to %{_party}%" to {_name}
	add {_uuid} to yaml list "data.%{_party}%.chat" from {@file}
	save yaml {@file}

function yamlRemovePlayer(name: player):
	load yaml {@file} as {@file}
	set {_uuid} to uuid of {_name}
	set {_party} to yaml value "user.%{_uuid}%" from {@file}
	send "{@debug} Remove your UUID from %{_party}%" to {_name}
	remove {_uuid} from yaml list "data.%{_party}%.chat" from {@file}
	save yaml {@file}

Reproduce:

  1. /yaml addparty &atest
  2. /yaml addplayer

Expecting Result:
Player's uuid will be added to yaml list "data.&atest.chat", not "data.§atest.chat".

Result:

user:
    d87af76e-09b8-4a0b-925b-d6dcc753a89a: "&atest"

data:
    "&atest":
        user:
        - d87af76e-09b8-4a0b-925b-d6dcc753a89a
    §atest:
        chat:
        - d87af76e-09b8-4a0b-925b-d6dcc753a89a

Versions:
Server Version: 3243-Spigot-6c1c1b2-d3cc412 (MC: 1.17.1)
Skript Version: 2.6-beta3

Installed Skript Addons:
skript-yaml v1.4.1

Of course, in this case, I has registered a uncolored string with &, so it can be said that it is the my fault in some way. But in this situation, uncolored string(with &) should not be converted to colored(with §), because it was registered as a uncolored string.

Receiving the command argument as colored can solve this problem. so I rewritten my scripts with colored command arguments. Now it seems to be working fine.

I couldn't find exactly where in my script was causing the problem because of #35, but now I think I finally found it. Thank you for your help. :D

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.