Closed treecaptcha closed 2 years ago
You should use AsyncChatEvent, not AsyncPlayerChatEvent. The changes made in AsyncChatDecorateEvent are there in the (Async)ChatEvents. The reason they are not present in the legacy player chat events, is to maintain compat with how bukkit (legacy) chose to handle previews. If you use the legacy preview event and the legacy chat events, the changes made in the preview event are also not present in the chat event. You should be using the decorate event with the chat events, not the player chat events.
Closing as Works As Intended for now. This system will be better documented once full support for signed messages and chat decoration is implemented (pending an Adventure update).
Expected behavior
I expect that when AsyncPlayerChatEvent is called it should have the changes made to the component made by AsyncChatDecorateEvent.
Observed/Actual behavior
AsyncPlayerChatEvent does not reflect changes made in AsyncChatDecorateEvent The code writes the current state of the text after the event name and priority.
Steps/models to reproduce
Register the following listeners
Plugin and Datapack List
Paper version
Other
No response