ON PVE - Players can be damaged from players outside

@nivex
Players are complaining that they can take damage or be killed by players outside the PVP Zones created by the Dangerous Treasures. Even at far distances and are camping the zones for players to kill.

Is there a way to stop this yet? Players like that there is an option to have PVP inside the Events but do not like players doing it that are NOT inside the events themselves.

CanEntityTakeDamage hook:

            if (EventTerritory(entity.transform.position)) // 1.5.8 & 1.6.4
            {
                if (entity is NPCPlayerCorpse)
                {
                    return true;
                }

                if (attacker.IsValid())
                {
                    if (EventTerritory(attacker.transform.position) && _config.TruePVE.AllowPVPAtEvents && entity is BasePlayer) // 1.2.9
                    {
                        return True;
                    }

                    if (EventTerritory(attacker.transform.position) && _config.TruePVE.AllowBuildingDamageAtEvents) // 1.3.3
                    {
                        return True;
                    }
                }

                if (IsTrueDamage(hitInfo.Initiator))
                {
                    return True;
                }
            }

hey, as you can see, both players must be in EventTerritory for damage to be allowed

as intended, PVP extends up to 10 meters from the dome. preventing players from building extends up to 15 meters from the dome. anything beyond this is pure exaggeration. the claim of turrets shooting players is absurd. there should be at least 5 to 15 meters of dead space that would make this impossible (IsLayerBlocked)

either way, I will remove this as it isn't needed anymore anyway