Skip to content

fix: Resolve Issue #54 and upgrade to Java 21 / Velocity 3.5.0#57

Merged
Phoenix616 merged 3 commits intoPhoenix616:masterfrom
tush2912:master
Mar 22, 2026
Merged

fix: Resolve Issue #54 and upgrade to Java 21 / Velocity 3.5.0#57
Phoenix616 merged 3 commits intoPhoenix616:masterfrom
tush2912:master

Conversation

@tush2912
Copy link
Contributor

Fixes #54

This PR modernizes the plugin to run natively on Java 21 and Velocity 3.5.0+.

It includes three main fixes:

  • Dependency Upgrades: Bumps SnakeYAML and others for Java 21 compatibility.
  • TabCompleteEvent: Restores missing auto-completion routing.
  • Issue ProxyServer#constructServerInfo method not supported #54 Target Server Fix: Resolves crashes by using Velocity's native .constructServerInfo to ensure ServerConnectEvent always has a valid target server.

@Phoenix616
Copy link
Owner

Thanks for the PR! Not a fan of the readme/maven changes but I will fix thos myself before merge.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm unsure if Velocity's TabCompleteEvent should be forwarded like this. The issue here is that Velocity's TabCompleteEvent is fired when the backend server replies to a tab complete (what Bungee calls TabCompleteResponseEvent which is already forwarded), not when the player attempts to tab complete hence there is no good way to forward this event unfortunately.

I thought about doing this event the same way before, not sure why I didn't follow up on this, because when I think about it now I feel like this could at least make Bungee's TabCompleteEvent somewhat work instead of simply doing nothing (but it relies on the backend server replying, which only happens on 1.12.2 or below)

- Fixes that changing tab suggestions wouldn't work
- Fix cases where sending the plugin message wouldn't work (as well as the future on login)
- Fix `Player#isTransferred` not working
- Move to numeric event priority instead of deprecated PostOrder
@Phoenix616 Phoenix616 merged commit f8d54ae into Phoenix616:master Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ProxyServer#constructServerInfo method not supported

2 participants