Skip to content

Fix Spigot chat last seen update fallback#32

Merged
robinbraemer merged 1 commit into
connectfrom
fix/spigot-chat-last-seen-update-1211
Jun 21, 2026
Merged

Fix Spigot chat last seen update fallback#32
robinbraemer merged 1 commit into
connectfrom
fix/spigot-chat-last-seen-update-1211

Conversation

@robinbraemer

Copy link
Copy Markdown
Member

Summary

  • Keep the existing Spigot chat last-seen rewrite path for the older LastSeenMessages.Update(int, BitSet, byte) constructor.
  • Add a fallback for newer Paper/Minecraft builds where LastSeenMessages.Update only exposes (int, BitSet).
  • Add a regression test with fake Mojang-mapped chat packet classes for the 1.21.1-style constructor shape.

Test Plan

  • ./gradlew :spigot:test --tests com.minekube.connect.addon.data.SpigotChatSessionPacketFilterTest
  • ./gradlew :spigot:test
  • ./gradlew test
  • ./gradlew check

Context

A user on Connect plugin 0.7.6 / Minecraft 1.21.1 hit NoSuchMethodException: net.minecraft.network.chat.LastSeenMessages$Update.<init>(int, java.util.BitSet, byte) when sending chat. Release 0.7.4 fixed the earlier chat validation kick, but the Spigot/Paper filter still assumed the older constructor shape.

@robinbraemer robinbraemer merged commit 8caea7d into connect Jun 21, 2026
1 check passed
@robinbraemer robinbraemer deleted the fix/spigot-chat-last-seen-update-1211 branch June 21, 2026 13:46
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