Need help with messages replay

Can anyone show an example how to remove global or player replay when player get muted or mute time is end and he get unmuted ?
I dont want those stuff get broadcasted in global chat at all :(

If i am not wrong you have to remove script lines inside the plugin itself

Everything with PublicMessage is announcing it in the global chat.