Detect hurt players in Minecraft Education Edition

I'm trying to make a Among Us map in Minecraft Edu, but I can't find a way to detect if the player was hit by another player, because I don't want to show that "Player was killed by Player", because it would make too obvious that someone was killed. I tried using the instant health effect to detect when the player was healed, but it didn't work.


Solution 1:

While not a direct answer to your question, your goal can be achieved by turning off the death messages using the command

/gamerule showdeathmessages false