개인 자료란 (JE)

  서버 커뮤니티

_R1tr0 8f162758e8b44b02abadc163de04e045

Profile

질문하기 스크립트

skript-yaml 변수저장 오류

2023.12.27 조회 수 152 추천 수 0
이해도 중급자 
게임버전 (JE) 관련없음, 1.20.1 
게임버전 (BE) 관련없음 
스크립트 버전 2.7.3 
스크립트 애드온 skript-yaml 1.5 



위 코드는  skript-yaml 깃허브에 나오는 예제 코드입니다.


예제를 활용하여 코드를 만드는 중인데, 11번줄 또는 12번줄에 정말 왜 오류가 나는지 이해가안됩니다.

예제에서 있는 TP 코드는 잘되는데 왜 변수설정은안될가요..



오류는 리로드는 잘되는데 명령어 쳤을때 납니다.

yaml 파일은 아래와 같이 되있습니다.





버킷정보: git-Purpujr-2095 (MC 1.20.2)

스크립트: Skript 2.7.3 

skript-yaml:  v1.5




아래는 버킷에 뜬 에러 로그 입니다.

[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




4개의 댓글

세찐찐
2023.12.27

skript yaml은 아직 1.20.X 를 지원하지 않습니다

 

만약 작동하더라도 애드온 자체의 문제이니 직접 해결할수 있는 방법은 없습니더

@세찐찐

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

된다고 하는데 이게 베타인가요..?

세찐찐
2023.12.28
@오버존클라우드

제가 이건 못봤네요

 

다시 한번 위키를 보고 해보거나

 

안되면 다음 업데이트를 기다리거나

 

깃헙 이슈에 질문을 해보는 방법이 있습니다

@세찐찐

????????????????? 깃헙 이슈에 질문하면서 skript(3).jar 에서 (3) 지우고 서버 재시작 한번 했는데 갑자기 되네요 (신기)

 

근데 이러다 또안되면....