crpmax / mc-bots

A simple app used for stress testing Minecraft servers with bots
MIT License
326 stars 55 forks source link

feat: support for 1.19.4 #68

Closed Vortezz closed 1 year ago

Vortezz commented 1 year ago

Little pull request to add support for 1.19.4

crpmax commented 1 year ago

The chat is not working.

When I typed a chat message, it kicked the bot with: [Server thread/INFO]: 5qjQ8p5J5X9JBP1S lost connection: Internal Exception: io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(22) + length(256) exceeds writerIndex(26): PooledUnsafeDirectByteBuf(ridx: 22, widx: 26, cap: 26)

Only chat commands work.

The next problem is that the disconnect message is empty.

[12:34:35] INFO | N3R9PQvlNbZZEBwT disconnected
[12:34:35] INFO |  ->

PLEASE TEST YOUR CODE BEFORE CREATING A PULL REQUEST!

I tested it on Spigot 1.19.4.

Vortezz commented 1 year ago

The code was working on spigot 1.19.4 with chat messages because I tested it too....