command gündüz:
trigger:
if {oylama.kontrol} is set:
if {verdi::%player%} is not set:
set {verdi::%player%} to "gündüz"
add 1 to {oylama.gündüz}
send "oyunu gündüze verdin!"
else:
send "oyunu zaten %{verdi::%player%}% verdin!"
else:
send "oylama yok!"
command gece:
trigger:
if {oylama.kontrol} is set:
if {verdi::%player%} is not set:
set {verdi::%player%} to "gece"
add 1 to {oylama.gece}
send "oyunu gündüze verdin!"
else:
send "oyunu zaten %{verdi::%player%}% verdin!"
else:
send "oylama yok!"
command zaman:
trigger:
if {oylama.kontrol} is not set:
set {oylama.kontrol} to true
set {oylama.gece} to 0
set {oylama.gündüz} to 0
broadcast "gece gündüz oylama basladi"
broadcast "/gündüz veya /gece"
loop 10 times:
set {_darari} to 11-loop-number
broadcast "oylama bitimine son %{_darari}%"
wait 1 second
broadcast "oylama bitti"
broadcast "gece: %{oylama.gece}% | gündüz: %{oylama.gündüz}%"
if {oylama.gece} = {oylama.gündüz}:
broadcast "eşitlik var zaman aynı kaldı"
else:
if {oylama.gece} > {oylama.gündüz}:
execute console command "night night skyworld"
broadcast "karanlık çöküyor"
else:
execute console command "day day skyworld"
broadcast "gün doğuyor"
delete {oylama.kontrol}
delete {verdi::*}
else:
send "oylama zaten aktif"