Skip to content

Fix chat formatting on Cardboard servers - #31

Open
slyphmp4 wants to merge 3 commits into
masterfrom
fix/cardboard-chat-event
Open

Fix chat formatting on Cardboard servers#31
slyphmp4 wants to merge 3 commits into
masterfrom
fix/cardboard-chat-event

Conversation

@slyphmp4

Copy link
Copy Markdown
Owner

Что исправлено

Cardboard exposes Paper's AsyncChatEvent class for API compatibility, but its chat pipeline may continue to dispatch the legacy Bukkit AsyncPlayerChatEvent. CloverChat previously treated mere class availability as proof that AsyncChatEvent was usable and therefore skipped registration of the legacy listener entirely.

This caused CloverChat commands to work while normal player chat bypassed CloverChat formatting on Cardboard.

Изменения

  • Detect Cardboard from the Bukkit server name/version fingerprint.
  • On Cardboard, skip ModernChatBridge and register the existing ChatListener using AsyncPlayerChatEvent.
  • Keep the existing AsyncChatEvent behavior unchanged on Paper/Purpur-compatible servers.
  • Report AsyncPlayerChatEvent (Cardboard compatibility) in the startup banner.

Scope

Only CloverChatPlugin.java is changed. No chat formatting, permissions, proxy sync, or message dispatch logic was modified.

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