retrooper / packetevents

PacketEvents is emerging as a strong contender in the realm of Minecraft packet processing libraries. Designed to simplify packet manipulation while delivering high performance, this powerful tool aims to demystify the complexities of projects utilizing packets.
GNU General Public License v3.0
521 stars 149 forks source link

SystemChatMessage diconnects from Velocity #520

Closed nightlyDuck closed 1 year ago

nightlyDuck commented 1 year ago

Describe the bug An error of sending a message to the player appears. (SystemChatMessage packet)

Software brand Velocity 3.2.0-SNAPSHOT, build 216 (error is also observed after the build 187)

Plugins Only PacketEvents 2.0.0-SNAPSHOT (last build from commit 239cc09 with applied 516 PR)

How To Reproduce

  1. Join on server with Minecraft 1.19.2 (any 1.19 version)
  2. Write code which send message to player
  3. Execute command
  4. See error

Screenshots

image image

Snowiiii commented 1 year ago

invocation.source() what does this return

nightlyDuck commented 1 year ago

invocation.source() what does this return

This is an analogue of CommandSender from BukkitAPI

Snowiiii commented 1 year ago

okay and on what Minecraft versions is the Server on ?

nightlyDuck commented 1 year ago

okay and on what Minecraft versions is the Server on ?

PacketEvents detects Velocity server version as 1.19.3

nightlyDuck commented 1 year ago

That's why I say that the problem appeared after Velocity added support for 1.19.3 Moreover, even the same packet of sending a message in Velocity works fine (SystemChatMessage packet)

MWHunter commented 1 year ago

works for me on both a 1.19.2 and 1.19.3 server connecting from a 1.19.3 client

retrooper commented 1 year ago

Sending packets on proxies is supported in 2.0.1