retrooper / packetevents

Precision meets performance—a powerful tool for mastering Minecraft packet manipulation with speed and finesse.
GNU General Public License v3.0
557 stars 151 forks source link

IndexOutOfBoundsException error from Matrix plugin when handling packets #987

Closed thisisaef closed 2 months ago

thisisaef commented 2 months ago

Describe the bug When a player clicks in the interface window (such as a container window), the Matrix plugin catches an exception and throws an IndexOutOfBoundsException

Expected Behavior The server should process the click event correctly, and the player should interact with the container without issues.

Actual Behavior Instead of processing the click event, the server throws an IndexOutOfBoundsException, causing the player to be disconnected with the error message "Internal Exception: io.netty.handler.codec.DecoderException"

Steps to Reproduce

  1. Have a player open a container window on the server.
  2. Attempt to interact with the container (e.g., click on an item).
  3. The exception occurs and the player gets disconnected.

Software brand Beckend: PaperMC 1.21.1-69-925c3b9 Proxy: Velocity 3.3.0-SNAPSHOT (git-3c23ee75-b430)

Plugins Matrix v7.10.3 packetevents v2.5.0+99acbe496-SNAPSHOT

Screenshots

1

image

2

image

Additional context Include any other helpful information, such as server logs (like the one you provided), or configuration files that may help reproduce the issue.

jtJava commented 2 months ago

You should provide a full stacktrace

thisisaef commented 2 months ago

You should provide a full stacktrace

What do I have to do?

booky10 commented 2 months ago

You need to send the full error

thisisaef commented 2 months ago

Because of the ecoenchants plugin, when clicking on an item with this plugin's special enchantment, the player will be kicked out of the server.

video: https://github.com/user-attachments/assets/f74bd110-f16f-416f-8feb-352b7ec6cc6e latest.log: https://paste.helpch.at/waxuhopexe.makefile

booky10 commented 2 months ago

i cant reproduce the issue shown in your video with the latest packetevents build have you ensured your matrix version is up-to-date?

booky10 commented 2 months ago

closing because of no response