Attempting to format two strings in vars, concatenated via arithmetic, causes stacktrace.
sovdeeth opened this issue ยท 0 comments
Skript/Server Version
[22:09:52 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[22:09:52 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[22:09:52 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[22:09:52 INFO]: [Skript] Server Version: 1.21-130-b1b5d4c (MC: 1.21)
[22:09:52 INFO]: [Skript] Skript Version: 2.9.3
[22:09:52 INFO]: [Skript] Installed Skript Addons:
[22:09:52 INFO]: [Skript] - skript-reflect v2.5.1 (https://github.com/SkriptLang/skript-reflect)
[22:09:52 INFO]: [Skript] - SkBee v3.6.1 (https://github.com/ShaneBeee/SkBee)
[22:09:52 INFO]: [Skript] Installed dependencies: None
Bug Description
When trying to format two string vars added together, a stack trace is called due to a casting exception.
Expected Behavior
the strings should be concatenated, then formatted.
Steps to Reproduce
!send formatted ({_colour} + {_name})
Don't even need to be set to anything.
Errors or Screenshots
[22:08:50 ERROR]: #!#!
[22:08:50 ERROR]: #!#! [Skript] Severe Error:
[22:08:50 ERROR]: #!#!
[22:08:50 ERROR]: #!#! Something went horribly wrong with Skript.
[22:08:50 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[22:08:50 ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[22:08:50 ERROR]: #!#! Here is full list of them:
[22:08:50 ERROR]: #!#! skript-reflect v2.5.1 (https://github.com/SkriptLang/skript-reflect) SkBee v3.6.1 (https://github.com/ShaneBeee/SkBee)
[22:08:50 ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[22:08:50 ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[22:08:50 ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[22:08:50 ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[22:08:50 ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[22:08:50 ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[22:08:50 ERROR]: #!#!
[22:08:50 ERROR]: #!#! Stack trace:
[22:08:50 ERROR]: #!#! java.lang.ClassCastException: class [Ljava.lang.Object; cannot be cast to class [Ljava.lang.String; ([Ljava.lang.Object; and [Ljava.lang.String; are in module java.base of loader 'bootstrap')
[22:08:50 ERROR]: #!#! at Skript-2.9.3.jar//ch.njol.skript.expressions.ExprColoured.get(ExprColoured.java:36)
[22:08:50 ERROR]: #!#! at Skript-2.9.3.jar//ch.njol.skript.expressions.base.PropertyExpression.get(PropertyExpression.java:116)
[22:08:50 ERROR]: #!#! at Skript-2.9.3.jar//ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:97)
[22:08:50 ERROR]: #!#! at Skript-2.9.3.jar//ch.njol.skript.effects.EffMessage.execute(EffMessage.java:123)
[22:08:50 ERROR]: #!#! at Skript-2.9.3.jar//ch.njol.skript.lang.Effect.run(Effect.java:49)
[22:08:50 ERROR]: #!#! at Skript-2.9.3.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:58)
[22:08:50 ERROR]: #!#! at Skript-2.9.3.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:85)
[22:08:50 ERROR]: #!#! at Skript-2.9.3.jar//ch.njol.skript.command.Commands.handleEffectCommand(Commands.java:210)
[22:08:50 ERROR]: #!#! at Skript-2.9.3.jar//ch.njol.skript.command.Commands$1.onServerCommand(Commands.java:180)
[22:08:50 ERROR]: #!#! at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:40)
[22:08:50 ERROR]: #!#! at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:84)
[22:08:50 ERROR]: #!#! at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[22:08:50 ERROR]: #!#! at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54)
[22:08:50 ERROR]: #!#! at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131)
[22:08:50 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628)
[22:08:50 ERROR]: #!#! at net.minecraft.server.dedicated.DedicatedServer.handleConsoleInputs(DedicatedServer.java:521)
[22:08:50 ERROR]: #!#! at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:474)
[22:08:50 ERROR]: #!#! at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1598)
[22:08:50 ERROR]: #!#! at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1304)
[22:08:50 ERROR]: #!#! at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:330)
[22:08:50 ERROR]: #!#! at java.base/java.lang.Thread.run(Thread.java:1583)
[22:08:50 ERROR]: #!#!
[22:08:50 ERROR]: #!#! Version Information:
[22:08:50 ERROR]: #!#! Skript: 2.9.3 (custom version)
[22:08:50 ERROR]: #!#! Flavor: selfbuilt-unknown
[22:08:50 ERROR]: #!#! Date: unknown
[22:08:50 ERROR]: #!#! Bukkit: 1.21-R0.1-SNAPSHOT
[22:08:50 ERROR]: #!#! Minecraft: 1.21
[22:08:50 ERROR]: #!#! Java: 21.0.3 (Java HotSpot(TM) 64-Bit Server VM 21.0.3+7-LTS-152)
[22:08:50 ERROR]: #!#! OS: Windows 10 amd64 10.0
[22:08:50 ERROR]: #!#!
[22:08:50 ERROR]: #!#! Server platform: Paper
[22:08:50 ERROR]: #!#!
[22:08:50 ERROR]: #!#! Current node: null
[22:08:50 ERROR]: #!#! Current item: send colored {_colour} (as java.lang.Object) + {_name} (as java.lang.Object) to event-command sender
[22:08:50 ERROR]: #!#!
[22:08:50 ERROR]: #!#! Thread: Server thread
[22:08:50 ERROR]: #!#!
[22:08:50 ERROR]: #!#! Language: english
[22:08:50 ERROR]: #!#! Link parse mode: DISABLED
[22:08:50 ERROR]: #!#!
[22:08:50 ERROR]: #!#! End of Error.
[22:08:50 ERROR]: #!#!
stack trace from dev/feature build, though replicated on 2.9.3 as well.
Other
No response
Agreement
- I have read the guidelines above and affirm I am following them with this report.