/msg and /tell work if the target is vanished. Discerning players can figure out someone may be watching them.
mbax commented
There's no super clean way to prevent other plugins from doing this. Plugins should be testing if players can see each other before allowing such things.