Is Within Radius (Condition) — Skript
Addon: Skript · Category: Condition · Since: 2.7
Syntax
%locations% (is|are) within %number% (block|metre|meter)[s] (around|of) %locations%Description
Checks whether a location is within a certain radius of another location.
Examples
on damage:
if attacker's location is within 10 blocks around {_spawn}:
cancel event
send "You can't PVP in spawn."