erase all that resistance stuff
on first join:
set {grace::%player%} to true
every minute:
loop all players:
{grace::%loop-player%} > 0 #this is an if statement without an if (the else is just stop)
set {grace::%loop-player%} to {grace::%loop-player%} -1
{grace::%loop-player% < 1
delete {grace::%loop-player%} # saves space in variable storage (I think)
on damage:
if {grace::%victim%} > 0:
cancel event
send action bar "&cYou cannot hurt other players during your grace period" to victim
victim is player
if {grace::%attacker%} > 0:
send action bar "&cYou cannot hurt other players during your grace period" to attacker