Players will be tagged as in PVP if they get attacked by a player/attack a player, the pvp tag will expire 2 minutes after latest pvp damage from or to that player, or until either player in the pvp dies.
Also count wolves as the player for PVP
