Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on click item #132

Closed
Frithy0 opened this issue Aug 10, 2022 · 2 comments
Closed

Error on click item #132

Frithy0 opened this issue Aug 10, 2022 · 2 comments
Labels
bug Something isn't working completed Bug fix / enhancement will be available in the next release

Comments

@Frithy0
Copy link

Frithy0 commented Aug 10, 2022

Description

The program stop after this error

Steps to Reproduce

My code:
just change the item's lore clicked
image

Expected Behavior

Errors / Screenshots

22:30:47 ERROR: #!#! [Skript] Severe Error:
22:30:47 ERROR: #!#!
22:30:47 ERROR: #!#! Something went horribly wrong with Skript.
22:30:47 ERROR: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
22:30:47 ERROR: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
22:30:47 ERROR: #!#! Following plugins are probably related to this error in some way:
22:30:47 ERROR: #!#! skript-gui (https://github.com/APickledWalrus/skript-gui)
22:30:47 ERROR: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
22:30:47 ERROR: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
22:30:47 ERROR: #!#! In that case, you will be given instruction on how should you report it.
22:30:47 ERROR: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
22:30:47 ERROR: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
22:30:47 ERROR: #!#!
22:30:47 ERROR: #!#! Stack trace:
22:30:47 ERROR: #!#! java.lang.ClassCastException: class org.bukkit.craftbukkit.v1_19_R1.inventory.CraftItemStack cannot be cast to class ch.njol.skript.aliases.ItemType (org.bukkit.craftbukkit.v1_19_R1.inventory.CraftItemStack is in unnamed module of loader java.net.URLClassLoader @484b61fc; ch.njol.skript.aliases.ItemType is in unnamed module of loader 'Skript (2).jar' @7132ee27)
22:30:47 ERROR: #!#! at skript-gui-1.3-beta2.jar//io.github.apickledwalrus.skriptgui.elements.expressions.ExprGUIValues.change(ExprGUIValues.java:167)
22:30:47 ERROR: #!#! at Skript (2).jar//ch.njol.skript.expressions.ExprLore.change(ExprLore.java:235)
22:30:47 ERROR: #!#! at Skript (2).jar//ch.njol.skript.effects.EffChange.execute(EffChange.java:282)
22:30:47 ERROR: #!#! at Skript (2).jar//ch.njol.skript.lang.Effect.run(Effect.java:50)
22:30:47 ERROR: #!#! at Skript (2).jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
22:30:47 ERROR: #!#! at Skript (2).jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
22:30:47 ERROR: #!#! at Skript (2).jar//ch.njol.skript.lang.Trigger.execute(Trigger.java:56)
22:30:47 ERROR: #!#! at skript-gui-1.3-beta2.jar//io.github.apickledwalrus.skriptgui.elements.sections.SecMakeGUI.lambda$walk$0(SecMakeGUI.java:115)
22:30:47 ERROR: #!#! at skript-gui-1.3-beta2.jar//io.github.apickledwalrus.skriptgui.gui.GUI$1.onClick(GUI.java:45)
22:30:47 ERROR: #!#! at skript-gui-1.3-beta2.jar//io.github.apickledwalrus.skriptgui.gui.events.GUIEvents.onInventoryClick(GUIEvents.java:123)
22:30:47 ERROR: #!#! at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor414.execute(Unknown Source)
22:30:47 ERROR: #!#! at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:75)
22:30:47 ERROR: #!#! at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:76)
22:30:47 ERROR: #!#! at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
22:30:47 ERROR: #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:666)
22:30:47 ERROR: #!#! at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:3133)
22:30:47 ERROR: #!#! at net.minecraft.network.protocol.game.PacketPlayInWindowClick.a(PacketPlayInWindowClick.java:58)
22:30:47 ERROR: #!#! at net.minecraft.network.protocol.game.PacketPlayInWindowClick.a(PacketPlayInWindowClick.java:23)
22:30:47 ERROR: #!#! at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$ensureRunningOnSameThread$1(PlayerConnectionUtils.java:51)
22:30:47 ERROR: #!#! at net.minecraft.server.TickTask.run(TickTask.java:18)
22:30:47 ERROR: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.d(IAsyncTaskHandler.java:153)
22:30:47 ERROR: #!#! at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(IAsyncTaskHandlerReentrant.java:24)
22:30:47 ERROR: #!#! at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1385)
22:30:47 ERROR: #!#! at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:183)
22:30:47 ERROR: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.x(IAsyncTaskHandler.java:126)
22:30:47 ERROR: #!#! at net.minecraft.server.MinecraftServer.bh(MinecraftServer.java:1362)
22:30:47 ERROR: #!#! at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1355)
22:30:47 ERROR: #!#! at net.minecraft.util.thread.IAsyncTaskHandler.bq(IAsyncTaskHandler.java:114)
22:30:47 ERROR: #!#! at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1489)
22:30:47 ERROR: #!#! at net.minecraft.server.MinecraftServer.v(MinecraftServer.java:1208)
22:30:47 ERROR: #!#! at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:307)
22:30:47 ERROR: #!#! at java.base/java.lang.Thread.run(Thread.java:833)
22:30:47 ERROR: #!#!
22:30:47 ERROR: #!#! Version Information:
22:30:47 ERROR: #!#! Skript: 2.6.3 (latest)
22:30:47 ERROR: #!#! Flavor: skriptlang-github
22:30:47 ERROR: #!#! Date: 00:55:22.847925631
22:30:47 ERROR: #!#! Bukkit: 1.19-R0.1-SNAPSHOT
22:30:47 ERROR: #!#! Minecraft: 1.19
22:30:47 ERROR: #!#! Java: 18.0.1.1 (Java HotSpot(TM) 64-Bit Server VM 18.0.1.1+2-6)
22:30:47 ERROR: #!#! OS: Windows 10 amd64 10.0
22:30:47 ERROR: #!#!
22:30:47 ERROR: #!#! Server platform: Paper
22:30:47 ERROR: #!#!
22:30:47 ERROR: #!#! Current node: null
22:30:47 ERROR: #!#! Current item: set the lore of gui clicked item to "Actuel: Ville"
22:30:47 ERROR: #!#! Current trigger: inventory click (inventory click) (town.sk, line -1)
22:30:47 ERROR: #!#!
22:30:47 ERROR: #!#! Thread: Server thread
22:30:47 ERROR: #!#!
22:30:47 ERROR: #!#! Language: english
22:30:47 ERROR: #!#! Link parse mode: DISABLED
22:30:47 ERROR: #!#!
22:30:47 ERROR: #!#! End of Error.
22:30:47 ERROR: #!#!

Server Information

  • Server version/platform:
  • skript-gui version:
  • Skript version:

Additional Context

@Frithy0 Frithy0 added the bug Something isn't working label Aug 10, 2022
@APickledWalrus
Copy link
Owner

The error comes from Skript itself, but there may be a small underlying problem with this addon. I'll have to investigate.

@APickledWalrus APickledWalrus added the investigating Looking into a bug label Aug 11, 2022
@APickledWalrus APickledWalrus added completed Bug fix / enhancement will be available in the next release and removed investigating Looking into a bug labels Aug 11, 2022
@APickledWalrus
Copy link
Owner

I've fixed the issue - which was that the ability to change the item could not be verified during runtime.
Skript's lore expression does not handle this properly and so an exception was thrown.

If you want, you can test the nightly build with this fix. It can be downloaded at https://github.com/APickledWalrus/skript-gui/suites/7775612015/artifacts/327177117

If you encounter any other issues. please feel free to report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working completed Bug fix / enhancement will be available in the next release
Projects
None yet
Development

No branches or pull requests

2 participants