command /czas [] []: trigger: if arg-1 = "start": if (arg-2 parsed as integer) is set: if {czas::%player%} is set: send "&cPoczekaj aż aktualny timer dobiegnie końca!" stop set {czas::%player%} to (arg-2 parsed as integer) while {czas::%player%} > 0: send action bar "%{czas::%player%}%" to player wait 1 second remove 1 from {czas::%player%} else: send "&cPodaj poprawną liczbę!" else if arg-1 = "stop": send "%{czas::%player%}%" delete {czas::%player%} else: send "&c/czas start [sekundy]" send "&c/czas stop" on quit: delete {czas::%player%}