Thanks for the advice but there is. Being hit when hidden is impossible (can you hit something you can't see?) while hitting others while hidden can be disabled from the config.
If you don't want a player to become invisible while pvp there is a hook with CombatTagPlus.
If you need more details use the discussion channel.