Skip to content

Refactor ViaVersion user version getter#1439

Open
booky10 wants to merge 1 commit intoretrooper:2.0from
booky10:feat/refactor-viaver-version-accessor
Open

Refactor ViaVersion user version getter#1439
booky10 wants to merge 1 commit intoretrooper:2.0from
booky10:feat/refactor-viaver-version-accessor

Conversation

@booky10
Copy link
Copy Markdown
Collaborator

@booky10 booky10 commented Jan 16, 2026

ViaVersion has recently implemented API which allows us to get the UserConnection from their encoder/decoder netty handlers without using reflection (see ViaVersion/ViaVersion@16a2a3a, ViaVersion/ViaVersion#3162)

This PR implements this api (currently only for spigot/paper as sponge doesn't implement this api yet) and falls back to using reflection if the api isn't available yet

ViaVersion has recently implemented API which allows us to get the UserConnection from their encoder/decoder netty handlers without using reflection
(see ViaVersion/ViaVersion@16a2a3a)

This implements this api (currently only for spigot as sponge doesn't implement this api yet) and falls back to using reflection if this api isn't available yet
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.

1 participant