CommandSender.spigot() not present on 1.9.4 when using EffBroadcast #5019
Labels
bug
An issue that needs to be fixed. Alternatively, a PR fixing an issue.
completed
The issue has been fully resolved and the change will be in the next Skript update.
legacy versions
Issues or PRs which are only applicable for the server versions 1.9-1.12
priority: low
Issues that are not harmful to the experience but are related to useful changes or additions.
Skript/Server Version
Bug Description
The broadcast expression under 1.9.4 returns a console error and does not run.
Expected Behavior
Let it spread my text
Steps to Reproduce
Install PaperSpigot 1.9.4 and put Skript 2.6.3 plugin.
Put this code if in a skript, at random:
Errors or Screenshots
null org.bukkit.command.CommandException: Unhandled exception executing command 'bc' in plugin Skript v2.6.3
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched_1.9.4.jar:git-Paper-775]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:152) ~[patched_1.9.4.jar:git-Paper-775]
at org.bukkit.craftbukkit.v1_9_R2.CraftServer.dispatchCommand(CraftServer.java:665) ~[patched_1.9.4.jar:git-Paper-775]
at net.minecraft.server.v1_9_R2.PlayerConnection.handleCommand(PlayerConnection.java:1387) [patched_1.9.4.jar:git-Paper-775]
at net.minecraft.server.v1_9_R2.PlayerConnection.a(PlayerConnection.java:1192) [patched_1.9.4.jar:git-Paper-775]
at net.minecraft.server.v1_9_R2.PacketPlayInChat.a(PacketPlayInChat.java:45) [patched_1.9.4.jar:git-Paper-775]
at net.minecraft.server.v1_9_R2.PacketPlayInChat.a(PacketPlayInChat.java:5) [patched_1.9.4.jar:git-Paper-775]
at net.minecraft.server.v1_9_R2.PlayerConnectionUtils$1.run(SourceFile:13) [patched_1.9.4.jar:git-Paper-775]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_332]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_332]
at net.minecraft.server.v1_9_R2.SystemUtils.a(SourceFile:45) [patched_1.9.4.jar:git-Paper-775]
at net.minecraft.server.v1_9_R2.MinecraftServer.D(MinecraftServer.java:786) [patched_1.9.4.jar:git-Paper-775]
at net.minecraft.server.v1_9_R2.DedicatedServer.D(DedicatedServer.java:403) [patched_1.9.4.jar:git-Paper-775]
at net.minecraft.server.v1_9_R2.MinecraftServer.C(MinecraftServer.java:723) [patched_1.9.4.jar:git-Paper-775]
at net.minecraft.server.v1_9_R2.MinecraftServer.run(MinecraftServer.java:622) [patched_1.9.4.jar:git-Paper-775]
at java.lang.Thread.run(Thread.java:750) [?:1.8.0_332]
Caused by: java.lang.NoSuchMethodError: org.bukkit.command.CommandSender.spigot()Lorg/bukkit/command/CommandSender$Spigot;
at ch.njol.skript.effects.EffBroadcast.lambda$execute$0(EffBroadcast.java:92) ~[?:?]
at java.util.ArrayList.forEach(ArrayList.java:1259) ~[?:1.8.0_332]
at ch.njol.skript.effects.EffBroadcast.execute(EffBroadcast.java:92) ~[?:?]
at ch.njol.skript.lang.Effect.run(Effect.java:51) ~[?:?]
at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:60) ~[?:?]
at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:88) ~[?:?]
at ch.njol.skript.lang.Trigger.execute(Trigger.java:56) ~[?:?]
at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:285) ~[?:?]
at ch.njol.skript.command.ScriptCommand.lambda$execute$0(ScriptCommand.java:250) ~[?:?]
at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:255) ~[?:?]
at ch.njol.skript.command.ScriptCommand.onCommand(ScriptCommand.java:194) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.9.4.jar:git-Paper-775]
... 15 more
Other
No response
Agreement
The text was updated successfully, but these errors were encountered: