hello i made this combat wall skript and it works but if i get in combat im not able to enter the region for ever
on damage:
if attacker is a player:
set {combat::%attacker's uuid%} to now
set {combat::%victim's uuid%} to now
on region enter:
if region contains "smpspawn":
if {combat::%player's uuid%} is set:
set {_time} to difference between {combat::%player's uuid%} and now
if {_time} < 15 seconds:
send "&cYou can't enter spawn during combat" to player
cancel event