AsyncChatEvent - Change players message

Hello, im using paper 1.16.5 for my plugin and players should be able to mention others.

Code:

Now I want to change the player’s chat message, I want the mentioned name to turn green.
How can I do that?