Skip to content

Conversation

RaynLegends
Copy link

@RaynLegends RaynLegends commented Sep 17, 2025

Closes #227

Adds support to ViaVersion 5, specifically targeting the lastest release (5.4.2).
Tested with ViaVersion 5.4.2 on a paper 1.8.8 server, modern colors are now properly shown to modern clients.

image

Closes KyoriPowered/adventure#4478
@RaynLegends RaynLegends force-pushed the feature/227-viaversion-5-support branch from 256c106 to 4300d1a Compare September 17, 2025 02:15
@FlorianMichael
Copy link

Seems like there is also another PR updating VV usage, #170

@RaynLegends
Copy link
Author

Yep, if kennytv wants to merge my changes on their PR that's fine by me 👍

That PR is based on an older version and I guess was a work in progress since it searches for some classes (like ClientboundPackets1_10) that do not exist in ViaVersion 5.x

@RaynLegends
Copy link
Author

There was an issue which I believe was present before the update.

Chat components were serialized using the "latest" serializer available in Adventure, this however caused components to have incorrect fields since they would go through the ViaVersion pipeline from Minecraft 1.16 (which of course would then rewrite the components as if they were from that version, even though the serializer wrote them as if they were in latest).

Now components should work correctly in every version, I personally tested:

  • Paper 1.8.8 server, ViaVersion 5.4.2 with 1.8.9 client (colors are downsampled, hovers and clicks work)
  • Paper 1.8.8 server, ViaVersion 5.4.2 with 1.21.8 client (modern colors, hovers and clicks work whereas they didn't before the fix in the commit)

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.

ViaVersion 5 support

2 participants