command /vote [] []: trigger: if arg 1 isn't set: send "&7/vote day &8- &aRozpoczyna glosowanie na dzien" send "&7/vote night &8- &aRozpoczyna glosowanie na noc" send "&7/vote sun &8- &aRozpoczyna glosowanie na slonce" stop if arg 1 is "day": if {glosowanie::night} is false: if {glosowanie::sun} is false: set {glosowanie::day} to true broadcast "&7>> &aNa serverze rozpoczelo sie glosowanie na dzien!" broadcast "&7>> &aJestes na &lTAK&a? &7/zaglosuj day tak" broadcast "&7>> &cJestes na &lNIE&a? &7/zaglosuj day nie" set {cooldown::day} to 60 stop if arg 1 is "night": if {glosowanie::day} is false: if {glosowanie::sun} is false: set {glosowanie::night} to true broadcast "&7>> &aNa serverze rozpoczelo sie glosowanie na noc!" broadcast "&7>> &aJestes na &lTAK&a? &7/zaglosuj night tak" broadcast "&7>> &cJestes na &lNIE&a? &7/zaglosuj night nie" set {cooldown::night} to 60 stop if arg 1 is "sun": if {glosowanie::day} is false: if {glosowanie:night} is false set {glosowanie::sun} to true broadcast "&7>> &aNa serverze rozpoczelo sie glosowanie na slonce!" broadcast "&7>> &aJestes na &lTAK&a? &7/zaglosuj sun tak" broadcast "&7>> &cJestes na &lNIE&a? &7/zaglosuj sun nie" set {cooldown::sun} to 60 stop command /zaglosuj [] []: trigger: if arg 1 is "sun": if arg 2 is "tak": if {glosowanie::sun} is false: send "&7>> &cObecnie nie ma glosowania na slonce" if {glosowanie::sun} is true: send "&7>> &aZaglosowales na slonce!" add 1 to {glosy::tak::slonce::*} stop if arg 1 is "sun": if arg 2 is "nie": if {glosowanie::sun} is false: send "&7>> &cObecnie nie ma glosowania na slonce" if {glosowanie::sun} is true: send "&7>> &cOdrzciles slonce!" add 1 to {glosy::nie::slonce::*} stop if arg 1 is "day": if arg 2 is "tak": if {glosowanie::day} is false: send "&7>> &cObecnie nie ma glosowania na dzien" if {glosowanie::day} is true: send "&7>> &aZaglosowales na dzien!" add 1 to {glosy::tak::dzien::*} stop if arg 1 is "day": if arg 2 is "nie": if {glosowanie::day} is false: send "&7>> &cObecnie nie ma glosowania na dzien" if {glosowanie::day} is true: send "&7>> &aZaglosowales na dzien!" add 1 to {glosy::nie::dzien::*} stop if arg 1 is "night": if arg 2 is "nie": if {glosowanie::night} is false: send "&7>> &cObecnie nie ma glosowania na dzien" if {glosowanie::night} is true: send "&7>> &cOdrzuciles na noc!" add 1 to {glosy::nie::night::*} stop if arg 1 is "night": if arg 2 is "tak": if {glosowanie::night} is false: send "&7>> &cObecnie nie ma glosowania na noc" if {glosowanie::night} is true: send "&7>> &aZaglosowales na noc!" add 1 to {glosy::tak::night::*} stop every 1 second: if {glosowanie::day} is true: remove 1 from {cooldown::day} if {glosowanie::night} is true: remove 1 from {cooldown::night} if {glosowanie::sun} is true: remove 1 from {cooldown::sun} every 1 second: if {cooldown::day} is 0: if {glosy::tak::dzien::*} is smaller than {glosy::nie::dzien::*}: broadcast "&7>> &aWygraly glosy na nie, wiec nie ma dnia!" set {cooldown::day} to 120 set {glosowanie::day} to false clear {glosy::tak::dzien::*} clear {glosy::nie::dzien::*} if {glosy::nie::dzien::*} is smaller than {glosy::nie::dzien::*}: broadcast "&7>> &aNastapil dzien, poniewaz zostal przeglosowany!" set time to 6:00 set {cooldown::day} to 120 set {glosowanie::day} to false clear {glosy::tak::dzien::*} clear {glosy::nie::dzien::*} if {cooldown::night} is 0: if {glosy::tak::night::*} is smaller than {glosy::nie::night::*}: broadcast "&7>> &aWygraly glosy na nie, wiec nie ma nocy!" set {cooldown::night} to 120 set {glosowanie::night} to false clear {glosy::tak::night::*} clear {glosy::nie::night::*} if {glosy::nie::night::*} is smaller than {glosy::nie::night::*}: set time to 20:00 broadcast "&7>> &aNastapila noc, poniewaz zostala przeglosowana!" set {cooldown::night} to 120 set {glosowanie::night} to false clear {glosy::tak::night::*} clear {glosy::nie::night::*} if {cooldown::sun} is 0: if {glosy::tak::sun::*} is smaller than {glosy::nie::sun::*}: broadcast "&7>> &aWygraly glosy na nie, wiec nie ma slonca!" set {cooldown::sun} to 120 set {glosowanie::sun} to false clear {glosy::tak::sun::*} clear {glosy::nie::sun::*} if {glosy::nie::sun::*} is smaller than {glosy::tak::sun::*}: set time to 13:00 broadcast "&7>> &aNastapilo slonce, poniewaz zostalo przeglosowane!" set {cooldown::sun} to 120 set {glosowanie::sun} to false clear {glosy::tak::sun::*} clear {glosy::nie::sun::*}