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

ArrayIndexOutOfBounds exception happening with /p music #4567

Open
2 tasks done
gnago opened this issue Jan 10, 2025 · 1 comment
Open
2 tasks done

ArrayIndexOutOfBounds exception happening with /p music #4567

gnago opened this issue Jan 10, 2025 · 1 comment
Labels
Approved A project maintainer or developer has reproduced this issue Bug Something isn't working

Comments

@gnago
Copy link

gnago commented Jan 10, 2025

Server Implementation

Paper

Server Version

1.21.3

Describe the bug

When you try to use the /p music command, an out of bounds error happens.

To Reproduce

  1. Go to your plot
  2. Use the command /p music
  3. Observe the error

Expected behaviour

It should open the music menu instead

Screenshots / Videos

image

Error log (if applicable)

No response

Plot Debugpaste

https://athion.net/ISPaster/paste/view/28b9856336ee4806a9d8ea0a8acb2dd2

PlotSquared Version

7.4.1-Premium

Checklist

Anything else?

Likely related to the fix made in issue #4551

@gnago gnago added the Requires Testing This is a new issue which needs to be approved before labeled with "bug" label Jan 10, 2025
@NotMyFault NotMyFault added Bug Something isn't working Approved A project maintainer or developer has reproduced this issue and removed Requires Testing This is a new issue which needs to be approved before labeled with "bug" labels Jan 19, 2025
@NotMyFault
Copy link
Member

Indeed:

[10:35:32 INFO]: NotMyFault issued server command: /plot music
[10:35:32 WARN]: java.lang.ArrayIndexOutOfBoundsException: Index 18 out of bounds for length 18
[10:35:32 WARN]: 	at plotsquared-bukkit-7.4.1-Premium.jar//com.plotsquared.core.plot.PlotInventory.setItemChecked(PlotInventory.java:123)
[10:35:32 WARN]: 	at plotsquared-bukkit-7.4.1-Premium.jar//com.plotsquared.core.command.Music.onCommand(Music.java:160)
[10:35:32 WARN]: 	at plotsquared-bukkit-7.4.1-Premium.jar//com.plotsquared.core.command.SubCommand.execute(SubCommand.java:50)
[10:35:32 WARN]: 	at plotsquared-bukkit-7.4.1-Premium.jar//com.plotsquared.core.command.Command.execute(Command.java:374)
[10:35:32 WARN]: 	at plotsquared-bukkit-7.4.1-Premium.jar//com.plotsquared.core.command.MainCommand.execute(MainCommand.java:306)
[10:35:32 WARN]: 	at plotsquared-bukkit-7.4.1-Premium.jar//com.plotsquared.core.command.MainCommand.onCommand(MainCommand.java:180)
[10:35:32 WARN]: 	at plotsquared-bukkit-7.4.1-Premium.jar//com.plotsquared.bukkit.BukkitCommand.onCommand(BukkitCommand.java:49)
[10:35:32 WARN]: 	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
[10:35:32 WARN]: 	at io.papermc.paper.command.brigadier.bukkit.BukkitCommandNode$BukkitBrigCommand.run(BukkitCommandNode.java:82)
[10:35:32 WARN]: 	at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73)
[10:35:32 WARN]: 	at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:30)
[10:35:32 WARN]: 	at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:13)
[10:35:32 WARN]: 	at net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8)
[10:35:32 WARN]: 	at net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:5)
[10:35:32 WARN]: 	at net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:105)
[10:35:32 WARN]: 	at net.minecraft.commands.Commands.executeCommandInContext(Commands.java:435)
[10:35:32 WARN]: 	at net.minecraft.commands.Commands.performCommand(Commands.java:342)
[10:35:32 WARN]: 	at net.minecraft.commands.Commands.performCommand(Commands.java:332)
[10:35:32 WARN]: 	at net.minecraft.commands.Commands.performCommand(Commands.java:326)
[10:35:32 WARN]: 	at net.minecraft.server.network.ServerGamePacketListenerImpl.performUnsignedChatCommand(ServerGamePacketListenerImpl.java:2197)
[10:35:32 WARN]: 	at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$11(ServerGamePacketListenerImpl.java:2170)
[10:35:32 WARN]: 	at net.minecraft.server.TickTask.run(TickTask.java:18)
[10:35:32 WARN]: 	at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:155)
[10:35:32 WARN]: 	at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24)
[10:35:32 WARN]: 	at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1448)
[10:35:32 WARN]: 	at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:176)
[10:35:32 WARN]: 	at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:129)
[10:35:32 WARN]: 	at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1428)
[10:35:32 WARN]: 	at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1422)
[10:35:32 WARN]: 	at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:139)
[10:35:32 WARN]: 	at net.minecraft.server.MinecraftServer.managedBlock(MinecraftServer.java:1379)
[10:35:32 WARN]: 	at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1387)
[10:35:32 WARN]: 	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1264)
[10:35:32 WARN]: 	at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:310)
[10:35:32 WARN]: 	at java.base/java.lang.Thread.run(Thread.java:1575)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved A project maintainer or developer has reproduced this issue Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants