options:
world: world
prefix: &8[&6Oylama&8]
at 20:00 from "{@world}":
if {timevoting} is false:
set {timevoting} to true
send "{@prefix} &7Oylama zamanı gelmiştir! Eğer zaman sabah olsun diyorsanız &a/zamansabah&7 komutunu, eğer zaman gece kalsın diyorsanız &c/zamangece&7 komutunu kullanabilirsiniz." to players
send "{@prefix} &7Zaman oylaması 30 saniye sürecektir!" to players
wait 30 seconds
if {votingtrue} is greater than {votingfalse}:
set time of the "{@world}" to 6:00
send "{@prefix} &7Oylama sonuçlarına göre zaman sabah yapılacaktır!" to players
send "{@prefix} &7Zamanın sabah olmasını isteyenler: &a%{votingtrue}% &8| &7Zamanın gece kalmasını isteyenler: &c%{votingfalse}%" to player
loop all players:
set {votingstat::%loop-player%} to false
set {votingtrue} to 0
set {votingfalse} to 0
else if {votingtrue} is not greater than {votingfalse}:
send "{@prefix} &7Oylama sonuçlarına göre zaman gece kalacaktır!" to players
send "{@prefix} &7Zamanın sabah olmasını isteyenler: &a%{votingtrue}% &8| &7Zamanın gece kalmasını isteyenler: &c%{votingfalse}%" to player
loop all players:
set {votingstat::%loop-player%} to false
set {votingtrue} to 0
set {votingfalse} to 0
on command:
if command is "zamansabah":
if {timevoting} is true:
if {votingstat::%player%} is false:
set {votingstat::%player%} to true
add 1 to {votingtrue}
send "{@prefix} &7Başarıyla, oylama hakkınızı kullandınız!" to player
else if {votingstat::%player%} is true:
send "{@prefix} &7Maalesef, zaten oylama hakkınızı kullanmışsınız!" to player
else if {timevoting} is false:
send "{@prefix} &7Maalesef, şu anda aktif bir zaman oylaması bulunmamaktadır!" to player
else if command is "zamangece":
if {timevoting} is true:
if {votingstat::%player%} is false:
set {votingstat::%player%} to true
add 1 to {votingfalse}
send "{@prefix} &7Başarıyla, oylama hakkınızı kullandınız!" to player
else if {votingstat::%player%} is true:
send "{@prefix} &7Maalesef, zaten oylama hakkınızı kullanmışsınız!" to player
else if {timevoting} is false:
send "{@prefix} &7Maalesef, şu anda aktif bir zaman oylaması bulunmamaktadır!" to player