PaperMC / Velocity

The modern, next-generation Minecraft server proxy.
https://papermc.io/software/velocity
GNU General Public License v3.0
1.68k stars 583 forks source link

A couple of fixes for handling of secure chat #1366

Closed Gegy closed 1 day ago

Gegy commented 2 days ago

This PR addresses a couple of issues in the implementation of secure chat handling in Velocity:

Most of the diff is refactoring ChatQueue to be able to capture the state that we need - recommend to review commit-by-commit.

This potentially resolves some cases of #1127 - but it's hard to say given possible interaction from other plugins and servers, and would need to get some specific testing on that. However, from personal experience running these patches on a 1.20.4 server over a few months - we haven't been able to reproduce any issues. 🙂

Thanks!