interceptPacket how to drop message

Hi,

i’m writing a plugin to intercept only packet. I need to drop them based on some rules.

I read that if i use PacketRejectedException, an error packet will be sent to sender. I only want to drop it silently.

How can i accomplish this? (i’m using OF 3.6.x)

Thanks