options:
P: &2[&aOylama&2]
command /oyla <integer> <text>:
permission: skript.op
usage: &b/oyla &3<&bSure&3> <&bKonu&3>
trigger:
set {skyblock} to 0
set {opskyblock} to 0
set {faction} to 0
set {survival} to 0
loop all players:
set {oyla.%loop-player%} to false
broadcast "{@P} &c%player% &8adli oyuncu oylama baslatti"
broadcast "&6[&eSoru&6]: &6%arg-2%"
broadcast "{@P} &7Oylamaya katılabilmek için &a/oylama &7yazınız."
broadcast "&3[&bZaman&3] &7Oylamanin bitmesine kalan sure &2%arg-1%&7 saniye"
set {OylamaBitis} to true
loop arg-1 times:
wait 1 second
broadcast "{@P} &6Oylama tamamlandi"
broadcast "{@P} &aSkyblock&7 sayısı &6%{skyblock}%"
broadcast "{@P} &cOPSkylbock&7 sayısı &6%{opskyblock}%"
broadcast "{@P} &cFaction&7 sayısı &6%{faction}%"
broadcast "{@P} &cSurvival&7 sayısı &6%{survival}%"
set {OylamaBitis} to false
command /oylama:
trigger:
open virtual chest inventory with size 3 named "&b&lOylama Menüsü" to player
format gui slot 10 of player with green wool named "&2&lSkyblock" with lore "&fSkyblock seçmek için buraya tıkla." to close then run player command "/Skyblock"
format gui slot 12 of player with red wool named "&c&lOPSkyBlock" with lore "&fOPSkyBlock seçmek için buraya tıkla." to close then run player command "/OPskyblock"
format gui slot 14 of player with pink wool named "&d&lFaction with lore "&fFaction seçmek için buraya tıkla." to close then run player command "/Faction"
format gui slot 14 of player with grey wool named "&7&lSurvival" with lore "&fSurvival seçmek için buraya tıkla." to close then run player command "/Survival"
command /Skyblock:
trigger:
if {OylamaBitis} is true:
if {oyla.%player%} is false:
add 1 to {skyblock}
message "{@P} &3Oyunuzu basariyla kullandiniz"
set {oyla.%player%} to true
else:
message "{@P} &cZaten oyunuzu kullanmissiniz."
else:
message "{@P} &cSuanda yururlukte olan bir oylama yok"
command /OPskyblock:
trigger:
if {OylamaBitis} is true:
if {oyla.%player%} is false:
add 1 to {opskyblock}
message "{@P} &3Oyunuzu basariyla kullandiniz"
set {oyla.%player%} to true
else:
message "{@P} &cZaten oyunuzu kullanmissiniz."
else:
message "{@P} &cSuanda yururlukte olan bir oylama yok"
command /Faction:
trigger:
if {OylamaBitis} is true:
if {oyla.%player%} is false:
add 1 to {faction}
message "{@P} &3Oyunuzu basariyla kullandiniz"
set {oyla.%player%} to true
else:
message "{@P} &cZaten oyunuzu kullanmissiniz."
else:
message "{@P} &cSuanda yururlukte olan bir oylama yok"
command /Survival:
trigger:
if {OylamaBitis} is true:
if {oyla.%player%} is false:
add 1 to {survival}
message "{@P} &3Oyunuzu basariyla kullandiniz"
set {oyla.%player%} to true
else:
message "{@P} &cZaten oyunuzu kullanmissiniz."
else:
message "{@P} &cSuanda yururlukte olan bir oylama yok"