on damage: if attacker is player: if attacker's gamemode is survival: set {czasl::%victim%} to 13 set {log::%victim%} to true set {czasl::%attacker%} to 13 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 "&6&lAnty&c&lLogout" to loop-player make score of "Czas:&c %{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 command: if {log::%player%} is true: cancel event send "&cNie mozna uzywac komend podczas walki!" on rightclick on ender chest: if {log::%player%} is true: cancel event send "&cNie mozesz otworzyc enderchesta podczas walki."