variables:
{saniye::%player%} = 0
{dakika::%player%} = 0
{saat::%player%} = 0
every 1 minutes:
broadcast "&3Online sürenize bakmak için &2/surem"
every second:
loop all players:
add 1 to {saniye::%loop-player%}
if {saniye::%loop-player%} is 60:
subtract 60 from {saniye::%loop-player%}
add 1 to {dakika::%loop-player%}
if {dakika::%loop-player%} is 60:
subtract 60 from {dakika::%loop-player%}
add 1 to {saat::%loop-player%}
{saat::%loop-player%} is 1:
{verild.%loop-player%} isn't set:
set {saat::%loop-player%} to 0
give 1 enchantent golden apple to loop-player
send "&aTebrikler 1 saattir sunucudasın!" to loop-player
command /surem:
trigger:
send "&aOnline süren; &b%{saat::%player%}%&8/&b%{dakika::%player%}%&8/&b%{saniye::%player%}% &6(Saat/Dakika/Saniye)"