Skript
Skript copied to clipboard
CommandSender.spigot() not present on 1.9.4 when using EffBroadcast
Skript/Server Version
[03:22:19 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[03:22:19 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[03:22:19 INFO]: [Skript] Server Version: git-Paper-775 (MC: 1.9.4)
[03:22:19 INFO]: [Skript] Skript Version: 2.6.3
[03:22:19 INFO]: [Skript] Installed Skript Addons: None
[03:22:19 INFO]: [Skript] Installed dependencies: None
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:
command /testbroadcast:
trigger:
broadcast "Woah! It's a message!"
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
- [x] I have read the guidelines above and affirm I am following them with this report.