on damage: if attacker is player: if attacker's gamemode is survival: set {czasl::%victim%} to 20 set {log::%victim%} to true set {czasl::%attacker%} to 20 set {log::%attacker%} to true every 1 second: loop all players: if {log::%loop-player%} is true: if {czasl::%loop-player%} is greater than 0: remove 1 from {czasl::%loop-player%} display board named "&cANTY-LOGOUT" to loop-player make score of "&cTIME:&7 %{czasl::%loop-player%}% s" in scoreboard of loop-player to 1 move display of loop-player to sidebar else: set {log::%loop-player%} to false display board named "" to loop-player make score of "" in scoreboard of loop-player to 1 move display of loop-player to sidebar on quit: If {log::%attacker%} is set: Kill player set {log::%attacker%} to false On quit: If {log::%victim%} is set: Kill player Set {log::%victim%} to false