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

[Bug]: When you use the jukebox to play a record you hear record 11 and the server console displays an error in the plugin #409

Closed
3 tasks done
Munalex opened this issue Jun 22, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@Munalex
Copy link

Munalex commented Jun 22, 2024

Describe the bug

Howdy!

I am trying to use version 2.0.8 of the plugin, and when I use the disc to listen to the custom disc in the game, disc 11 from the game itself plays instead, and the plugin crashes on the server console. I created the resource pack through the website, and everything works fine: the disc texture, the song title, the description, and the author. The issue occurs when using it on the jukebox. If I use the command jext play disc directly on a player, the song plays perfectly.

Steps to reproduce

Load the world, use a give command to give a jukebox, use jext give disc to give custom disc to the player and use the disc in the jukebox

Expected behaviour

[02:15:28] [Server thread/ERROR]: Could not pass event PlayerInteractEvent to JukeboxExtendedReborn v2.0.8
java.lang.ExceptionInInitializerError: null
at JEXT-Reborn_2.0.8.jar/me.spartacus04.jext.discs.Disc$Companion.stop(Unknown Source) ~[JEXT-Reborn_2.0.8.jar:?]
at JEXT-Reborn_2.0.8.jar/me.spartacus04.jext.discs.Disc.play(Unknown Source) ~[JEXT-Reborn_2.0.8.jar:?]
at JEXT-Reborn_2.0.8.jar/me.spartacus04.jext.discs.Disc.play$default(Unknown Source) ~[JEXT-Reborn_2.0.8.jar:?]
at JEXT-Reborn_2.0.8.jar/me.spartacus04.jext.listeners.JukeboxClickEvent.defaultBehaviour(Unknown Source) ~[JEXT-Reborn_2.0.8.jar:?]
at JEXT-Reborn_2.0.8.jar/me.spartacus04.jext.listeners.JukeboxClickEvent.onJukeboxInteract(Unknown Source) ~[JEXT-Reborn_2.0.8.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor10.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:1.20.6-147-e41d44f]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:593) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.level.ServerPlayerGameMode.useItemOn(ServerPlayerGameMode.java:531) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleUseItemOn(ServerGamePacketListenerImpl.java:1931) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:44) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:11) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:55) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1511) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:195) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:125) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1488) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1411) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:135) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1377) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1238) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3
at JEXT-Reborn_2.0.8.jar/me.spartacus04.jext.dependencies.jext-reborn.nbteditor.NBTEditor.(Unknown Source) ~[JEXT-Reborn_2.0.8.jar:?]
... 31 more
[02:15:33] [Server thread/ERROR]: Could not pass event PlayerInteractEvent to JukeboxExtendedReborn v2.0.8
java.lang.NoClassDefFoundError: Could not initialize class me.spartacus04.jext.dependencies.jext-reborn.nbteditor.NBTEditor
at JEXT-Reborn_2.0.8.jar/me.spartacus04.jext.discs.Disc$Companion.stop(Unknown Source) ~[JEXT-Reborn_2.0.8.jar:?]
at JEXT-Reborn_2.0.8.jar/me.spartacus04.jext.listeners.JukeboxClickEvent.defaultBehaviour(Unknown Source) ~[JEXT-Reborn_2.0.8.jar:?]
at JEXT-Reborn_2.0.8.jar/me.spartacus04.jext.listeners.JukeboxClickEvent.onJukeboxInteract(Unknown Source) ~[JEXT-Reborn_2.0.8.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor10.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:1.20.6-147-e41d44f]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:593) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.level.ServerPlayerGameMode.useItemOn(ServerPlayerGameMode.java:531) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleUseItemOn(ServerGamePacketListenerImpl.java:1931) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:44) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:11) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:55) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1511) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:195) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:125) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1488) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1411) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:135) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1377) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1238) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3 [in thread "Server thread"]
at JEXT-Reborn_2.0.8.jar/me.spartacus04.jext.dependencies.jext-reborn.nbteditor.NBTEditor.(Unknown Source) ~[JEXT-Reborn_2.0.8.jar:?]
at JEXT-Reborn_2.0.8.jar/me.spartacus04.jext.discs.Disc$Companion.stop(Unknown Source) ~[JEXT-Reborn_2.0.8.jar:?]
at JEXT-Reborn_2.0.8.jar/me.spartacus04.jext.discs.Disc.play(Unknown Source) ~[JEXT-Reborn_2.0.8.jar:?]
at JEXT-Reborn_2.0.8.jar/me.spartacus04.jext.discs.Disc.play$default(Unknown Source) ~[JEXT-Reborn_2.0.8.jar:?]
... 28 more
[02:16:04] [Server thread/INFO]: Server Plugins (2):
[02:16:04] [Server thread/INFO]: Bukkit Plugins:
[02:16:04] [Server thread/INFO]: - JukeboxExtendedReborn, ProtocolLib
[02:16:07] [Server thread/INFO]: Stopping the server
[02:16:07] [Server thread/INFO]: Stopping server
[02:16:07] [Server thread/INFO]: [JEXT] Disabling JukeboxExtendedReborn v2.0.8
[02:16:07] [Server thread/INFO]: [JEXT] Webserver stopped
[02:16:07] [Server thread/INFO]: [JEXT] Disabled Jukebox Extended Reborn, Mi Re Do!
[02:16:07] [Server thread/INFO]: [ProtocolLib] Disabling ProtocolLib v5.3.0-SNAPSHOT-721
[02:16:07] [Server thread/INFO]: Saving players
[02:16:07] [Server thread/INFO]: LordOfTheTopacio lost connection: Server closed
[02:16:07] [Server thread/INFO]: LordOfTheTopacio left the game
[02:16:07] [Server thread/INFO]: Saving worlds
[02:16:07] [Server thread/INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:overworld
[02:16:07] [Server thread/INFO]: [ChunkHolderManager] Waiting 60s for chunk system to halt for world 'world'
[02:16:07] [Server thread/INFO]: [ChunkHolderManager] Halted chunk system for world 'world'
[02:16:07] [Server thread/INFO]: [ChunkHolderManager] Saving all chunkholders for world 'world'
[02:16:08] [Server thread/INFO]: [ChunkHolderManager] Saved 675 block chunks, 675 entity chunks, 0 poi chunks in world 'world' in 1,38s
[02:16:08] [Server thread/INFO]: ThreadedAnvilChunkStorage (world): All chunks are saved
[02:16:08] [Server thread/INFO]: Saving chunks for level 'ServerLevel[world_nether]'/minecraft:the_nether
[02:16:08] [Server thread/INFO]: [ChunkHolderManager] Waiting 60s for chunk system to halt for world 'world_nether'
[02:16:08] [Server thread/INFO]: [ChunkHolderManager] Halted chunk system for world 'world_nether'
[02:16:08] [Server thread/INFO]: [ChunkHolderManager] Saving all chunkholders for world 'world_nether'
[02:16:08] [Server thread/INFO]: [ChunkHolderManager] Saved 49 block chunks, 49 entity chunks, 0 poi chunks in world 'world_nether' in 0,06s
[02:16:08] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[02:16:08] [Server thread/INFO]: Saving chunks for level 'ServerLevel[world_the_end]'/minecraft:the_end
[02:16:08] [Server thread/INFO]: [ChunkHolderManager] Waiting 60s for chunk system to halt for world 'world_the_end'
[02:16:08] [Server thread/INFO]: [ChunkHolderManager] Halted chunk system for world 'world_the_end'
[02:16:08] [Server thread/INFO]: [ChunkHolderManager] Saving all chunkholders for world 'world_the_end'
[02:16:08] [Server thread/INFO]: [ChunkHolderManager] Saved 49 block chunks, 49 entity chunks, 0 poi chunks in world 'world_the_end' in 0,04s
[02:16:08] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[02:16:08] [Server thread/INFO]: ThreadedAnvilChunkStorage: All dimensions are saved
[02:16:08] [Server thread/INFO]: Flushing Chunk IO
[02:16:08] [Server thread/INFO]: Closing Thread Pool
[02:16:08] [Server thread/INFO]: Closing Server

Logs

No response

Server Version

1.20.6

Server Type

Paper

Discs.json

{
  "gtavigtavione": {
    "sounds": [
      {
        "name": "records/gtavigtavione",
        "stream": true
      }
    ]
  }
}

Resource pack

No response

Jukebox Behaviour

Vanilla

Before submitting the issue

  • I have searched the issue tracker and did not find an issue describing my bug.
  • I agree to the fact that if this issue becomes inactive it will be closed.
  • I agree to the fact that if most fields in this issue are not filled correctly the issue will be marked as invalid and closed.
@Munalex Munalex added the bug Something isn't working label Jun 22, 2024
@jack1888x
Copy link

I have the same problem....

@LeonMT1
Copy link

LeonMT1 commented Jul 10, 2024

i have the same problem but in 1.21

@spartacus04
Copy link
Owner

1.21 is not currently supported, I'm working on it and will release an update when ready

@IIIvanov22
Copy link

Have you fixed this?

@TSCwolfy
Copy link

TSCwolfy commented Jan 2, 2025

Is this issue fixed yet?

@spartacus04
Copy link
Owner

fixed in 2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants