on damage: if attacker is player: if victim is player: if {antylogout::%victim%} is not set: send "&cJestes podczas walki! Nie logaj!" to victim set {antylogout::%victim%} to 20 every 1 seconds: loop all players: if {antylogout::%loop-player%} is set: if {antylogout::%loop-player%} is greater than 0: remove 1 from {antylogout::%loop-player%} set action bar of loop-player to "&c&lAntyLogout &2&l[&9%{antylogout::%loop-player%}%&4sek]" else: clear {antylogout::%loop-player%} send "&aSkonczyles walczyc." to loop-player set action bar of loop-player to "&2&lAntyLogout"