function startAntiLogOut(p: player): set {antiLogOut::%{_p}%} and {_var} to 30 loop 20 times: {antiLogOut::%{_p}%} is not set: stop {antiLogOut::%{_p}%} > {_var}: stop send action bar "&7&k:: &8( &4&l%{antiLogOut::%{_p}%}% &8) &7&k::" to {_p} remove 1 from {antiLogOut::%{_p}%} and {_var} wait 1 second clear {antiLogOut::%{_p}%} send action bar "&aKoniec Antylogaut'u" to {_p} on damage of player: attacker is set startAntiLogOut(victim) startAntiLogOut(attacker) on damage: if attacker is a player: startAntiLogOut(victim) startAntiLogOut(attacker) on quit: {antiLogOut::%player%} is set kill player on command: command is not "helpop" or "zglos" or "msg" {antiLogOut::%player%} is set cancel event send "&cJesteƛ podczas walki!" to player