so I want a skript so when you get in combat you can not enter back into spawn
i have a combat tag skript i made but idk if you need it ill just put it here
it needs to work 1.17
on damage:
if attacker is a player:
set {combat::%attacker's uuid%} to now
set {combat::%victim's uuid%} to now
if {combat::%attacker's uuid%} is set:
on command:
if player is not op:
if {combat::%player's uuid%} is set:
set {_time} to difference between {combat::%player's uuid%} and now
if {_time} < 15 seconds:
send "&cYour currenly in combat, please wait" to player
cancel event
i have a combat tag skript i made but idk if you need it ill just put it here
it needs to work 1.17
on damage:
if attacker is a player:
set {combat::%attacker's uuid%} to now
set {combat::%victim's uuid%} to now
if {combat::%attacker's uuid%} is set:
on command:
if player is not op:
if {combat::%player's uuid%} is set:
set {_time} to difference between {combat::%player's uuid%} and now
if {_time} < 15 seconds:
send "&cYour currenly in combat, please wait" to player
cancel event