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

CommandSender.spigot() not present on 1.9.4 when using EffBroadcast #5019

Closed
1 task done
iammehdib opened this issue Aug 9, 2022 · 0 comments
Closed
1 task done
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.

Comments

@iammehdib
Copy link

iammehdib commented Aug 9, 2022

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

  • I have read the guidelines above and affirm I am following them with this report.
@TheLimeGlass TheLimeGlass added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. priority: low Issues that are not harmful to the experience but are related to useful changes or additions. legacy versions Issues or PRs which are only applicable for the server versions 1.9-1.12 labels Aug 9, 2022
@TheLimeGlass TheLimeGlass changed the title Broadcast make Internal error CommandSender.spigot() not present on 1.9.4 Aug 9, 2022
@TheLimeGlass TheLimeGlass changed the title CommandSender.spigot() not present on 1.9.4 CommandSender.spigot() not present on 1.9.4 when using EffBroadcast Aug 9, 2022
@APickledWalrus APickledWalrus self-assigned this Sep 18, 2022
@APickledWalrus APickledWalrus added the PR available Issues which have a yet-to-be merged PR resolving it label Sep 18, 2022
@TheLimeGlass TheLimeGlass added completed The issue has been fully resolved and the change will be in the next Skript update. and removed PR available Issues which have a yet-to-be merged PR resolving it labels Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

3 participants