Blocking Player Chats

Hello all! I am currently making an open-source script that requires me to make my own chat handler (for live text translations!)

Basically, I need a way to block chats (more specifically, intercept) through the server, then i can handle sending out chats myself from there. I just want to prevent double sending of chats.

I can’t really find any resources, but maybe I’m overlooking something. This new text chat service is super confusing for me.

Thanks for any and all help!

Just store the last chat of the player and check if it’s equal to the new one.

So it won’t be identical because it’s going to be translated to the correct language of the player. I need to know how to block the original message and then pass on the new one after I process it.