Closed iGabyTM closed 1 year ago
AsyncPlayerChatEvent is cancelled at priority Highest, which fires last. You can modify the event before it reaches VentureChat by listening on a lower priority.
VentureChatEvent is read only and fires after I've already processed the chat. Modifying the event would invoke modifying the json as well, which is why it's read only. There theoretically could be an event between AsyncPlayerChatEvent and VentureChat event that fires after VentureChat has decided to process the chat (the player isn't muted, etc) but before processing the json.
For some reason my listener with HIGH priority didn't work, thank you for your reply.
Since the VentureChatEvent doesn't have any setters, how can I modify the message? I need to replace some characters, and since you cancel AsyncPlayerChatEvent I can't do it there either.