Can hurt each other
Whether the first player can hurt the second: yes unless they share a team with friendly fire off.
A Minecraft element (a check) in Scoreboards & teams. Needs the Basic plan or higher to go live; building and testing are free.
Example
When a player is hurt → If Can hurt each other is false → Cancel the event.
Also called
can hurt, friendly fire check, pvp allowed between, team damage allowed
Works as a data pack?
No. This one needs the Elementium plugin on a Paper server.
What you give it
- Player
- Other player