
ExprGameMode ClassCastException exception
Closed this issue ยท 0 comments
Skript/Server Version
2.12.1 latest skriptTestDev
Bug Description
ExprGameMode throwing an exception
Expected Behavior
To not throw an exception
Steps to Reproduce
function get() :: offlineplayers:
return offline players
command /fail:
trigger:
send title "<#00ff00>&lExample" with subtitle "%get() where [gamemode of player input is survival]%" to all players
Just running it while a player is online the server
Errors or Screenshots
[13:35:40] [Server thread/ERROR]: #!#!
[13:35:40] [Server thread/ERROR]: #!#! Stack trace:
[13:35:40] [Server thread/ERROR]: #!#! Caused by: java.lang.ClassCastException: class [Ljava.lang.Object; cannot be cast to class [Lorg.bukkit.entity.Player; ([Ljava.lang.Object; is in module java.base of loader 'bootstrap'; [Lorg.bukkit.entity.Player; is in unnamed module of loader java.net.URLClassLoader @369f73a2)
[13:35:40] [Server thread/ERROR]: #!#! at Skript.jar//ch.njol.skript.expressions.ExprGameMode.get(ExprGameMode.java:26)
[13:35:40] [Server thread/ERROR]: #!#! at Skript.jar//ch.njol.skript.expressions.base.PropertyExpression.get(PropertyExpression.java:193)
[13:35:40] [Server thread/ERROR]: #!#! at Skript.jar//ch.njol.skript.lang.util.SimpleExpression.check(SimpleExpression.java:144)
[13:35:40] [Server thread/ERROR]: #!#! at Skript.jar//ch.njol.skript.conditions.CondCompare.check(CondCompare.java:327)
[13:35:40] [Server thread/ERROR]: #!#! at Skript.jar//ch.njol.skript.expressions.ExprFilter.lambda$keyedIterator$1(ExprFilter.java:99)
[13:35:40] [Server thread/ERROR]: #!#! at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:178)
[13:35:40] [Server thread/ERROR]: #!#! at java.base/java.util.Spliterators$IteratorSpliterator.tryAdvance(Spliterators.java:1950)
[13:35:40] [Server thread/ERROR]: #!#! at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.lambda$initPartialTraversalState$0(StreamSpliterators.java:292)
[13:35:40] [Server thread/ERROR]: #!#! at java.base/java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.fillBuffer(StreamSpliterators.java:206)
[13:35:40] [Server thread/ERROR]: #!#! at java.base/java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.doAdvance(StreamSpliterators.java:161)
[13:35:40] [Server thread/ERROR]: #!#! at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.tryAdvance(StreamSpliterators.java:298)
[13:35:40] [Server thread/ERROR]: #!#! at java.base/java.util.Spliterators$1Adapter.hasNext(Spliterators.java:681)
[13:35:40] [Server thread/ERROR]: #!#! at Skript.jar//ch.njol.skript.lang.KeyedValue.unzip(KeyedValue.java:112)
[13:35:40] [Server thread/ERROR]: #!#! at Skript.jar//ch.njol.skript.expressions.ExprFilter.get(ExprFilter.java:108)
[13:35:40] [Server thread/ERROR]: #!#! at Skript.jar//ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:86)
[13:35:40] [Server thread/ERROR]: #!#! at Skript.jar//ch.njol.skript.lang.VariableString.toString(VariableString.java:523)
[13:35:40] [Server thread/ERROR]: #!#! at Skript.jar//ch.njol.skript.lang.VariableString.getSingle(VariableString.java:639)
[13:35:40] [Server thread/ERROR]: #!#! at Skript.jar//ch.njol.skript.lang.VariableString.getSingle(VariableString.java:42)
[13:35:40] [Server thread/ERROR]: #!#! at Skript.jar//ch.njol.skript.effects.EffSendTitle.execute(EffSendTitle.java:78)
[13:35:40] [Server thread/ERROR]: #!#! at Skript.jar//ch.njol.skript.lang.Effect.run(Effect.java:42)
[13:35:40] [Server thread/ERROR]: #!#! at Skript.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:40)
[13:35:40] [Server thread/ERROR]: #!#! at Skript.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:67)
[13:35:40] [Server thread/ERROR]: #!#! at Skript.jar//ch.njol.skript.lang.Trigger.execute(Trigger.java:33)
[13:35:40] [Server thread/ERROR]: #!#! at Skript.jar//ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:352)
[13:35:40] [Server thread/ERROR]: #!#! at Skript.jar//ch.njol.skript.command.ScriptCommand.lambda$execute$0(ScriptCommand.java:311)
[13:35:40] [Server thread/ERROR]: #!#! at Skript.jar//ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:322)
[13:35:40] [Server thread/ERROR]: #!#! at Skript.jar//ch.njol.skript.command.ScriptCommand.onCommand(ScriptCommand.java:257)
[13:35:40] [Server thread/ERROR]: #!#! at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
[13:35:40] [Server thread/ERROR]: #!#! at io.papermc.paper.command.brigadier.bukkit.BukkitCommandNode$BukkitBrigCommand.run(BukkitCommandNode.java:83)
[13:35:40] [Server thread/ERROR]: #!#! at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73)
[13:35:40] [Server thread/ERROR]: #!#! at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:30)
[13:35:40] [Server thread/ERROR]: #!#! at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:13)
[13:35:40] [Server thread/ERROR]: #!#! at net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8)
[13:35:40] [Server thread/ERROR]: #!#! at net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:5)
[13:35:40] [Server thread/ERROR]: #!#! at net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:105)
[13:35:40] [Server thread/ERROR]: #!#! at net.minecraft.commands.Commands.executeCommandInContext(Commands.java:451)
[13:35:40] [Server thread/ERROR]: #!#! at net.minecraft.commands.Commands.performCommand(Commands.java:357)
[13:35:40] [Server thread/ERROR]: #!#! at net.minecraft.commands.Commands.performCommand(Commands.java:345)
[13:35:40] [Server thread/ERROR]: #!#! at net.minecraft.server.network.ServerGamePacketListenerImpl.performUnsignedChatCommand(ServerGamePacketListenerImpl.java:2313)
[13:35:40] [Server thread/ERROR]: #!#! at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$12(ServerGamePacketListenerImpl.java:2286)
[13:35:40] [Server thread/ERROR]: #!#! at net.minecraft.server.TickTask.run(TickTask.java:18)
[13:35:40] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:155)
[13:35:40] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24)
[13:35:40] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1449)
[13:35:40] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:176)
[13:35:40] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:129)
[13:35:40] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1429)
[13:35:40] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1423)
[13:35:40] [Server thread/ERROR]: #!#! at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:139)
[13:35:40] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.managedBlock(MinecraftServer.java:1380)
[13:35:40] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1388)
[13:35:40] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1265)
[13:35:40] [Server thread/ERROR]: #!#! at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:310)
[13:35:40] [Server thread/ERROR]: #!#! at java.base/java.lang.Thread.run(Thread.java:1583)
[13:35:40] [Server thread/ERROR]: #!#!
[13:35:40] [Server thread/ERROR]: #!#! Skript: 2.12.1-nightly-3b37ed929 (development)
[13:35:40] [Server thread/ERROR]: #!#! Flavor: skriptlang-nightly
[13:35:40] [Server thread/ERROR]: #!#! Date: 13:31:16.970322100
[13:35:40] [Server thread/ERROR]: #!#! Bukkit: 1.21.8-R0.1-SNAPSHOT
[13:35:40] [Server thread/ERROR]: #!#! Minecraft: 1.21.8
[13:35:40] [Server thread/ERROR]: #!#! Java: 21.0.6 (Java HotSpot(TM) 64-Bit Server VM 21.0.6+8-LTS-188)
[13:35:40] [Server thread/ERROR]: #!#! OS: Windows 10 amd64 10.0
[13:35:40] [Server thread/ERROR]: #!#!
[13:35:40] [Server thread/ERROR]: #!#! Server platform: Paper
[13:35:40] [Server thread/ERROR]: #!#!
[13:35:40] [Server thread/ERROR]: #!#! Current node: null
[13:35:40] [Server thread/ERROR]: #!#! Current item: with subtitle "%get() that match [gamemode of player input is survival]%" to all entities of type [[entitydata:adult player]] for with fade in and fade out
[13:35:40] [Server thread/ERROR]: #!#! Current trigger: command /fail (simple event) (test.sk, line 5)
[13:35:40] [Server thread/ERROR]: #!#! Thread: Server thread
[13:35:40] [Server thread/ERROR]: #!#! Language: english
[13:35:40] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
[13:35:40] [Server thread/ERROR]: #!#! End of Error.
[13:35:40] [Server thread/ERROR]: #!#!
Other
No response
Agreement
- I have read the guidelines above and affirm I am following them with this report.