on join:
if {czas::%player%} is not set:
set {czas::%player%} to 0 second
while player is online:
add 1 second to {czas::%player%}
wait 1 second
command /czasonline [<text>]:
trigger:
set {_text} to "%{czas::%player%}%"
#Zamienianie formatu
replace all "days" and "day" with "d" in {_text}
replace all "hours" and "hour" with "h" in {_text}
replace all "minutes" and "minute" with "m" in {_text}
replace all "seconds" and "second" with "s" in {_text}
replace all "and" and "," with ":" in {_text}
#Wysylanie wiadomosci
send "&7Spedziles na serwerze: &a%{_text}% &6%{czas::%player%}%"