options: prefix: &9Nagroda &8» # Przedrostek wiadomości nagroda: economy give %player% 5000 # Komenda wykonująca się po odebraniu nagrody # Automatyczne konkursy (kod wyświetla się co jakiś czas) # True - Są włączone # False - Są wyłączone auto-konkurs: true # Czas co który się wykonuje konkurs sam time: 5 # Jednostka czasu, po angielsku # second(s) - sekundy | minute(s) - minuty | hour(s) - godziny | day(s) - dni | month(s) - miesiac | year(s) - rok unit: minutes variables: {konkurs} = 0 command /konkurs []: trigger: if sender has permission "voucher": loop 10 times: set {konkurs.znak%loop-value%} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 set {konkurs.kod} to "%{konkurs.znak1}%%{konkurs.znak2}%%{konkurs.znak3}%%{konkurs.znak4}%%{konkurs.znak5}%%{konkurs.znak6}%%{konkurs.znak7}%%{konkurs.znak8}%%{konkurs.znak9}%%{konkurs.znak10}%" set {konkurs} to 1 broadcast "%nl%{@prefix} &7Napisz &a%{konkurs.kod}%&7, by wygrac &a5000$&7! %nl% " else: message "&cNie masz uprawnien do tego!" stop command /kod []: trigger: if arg 1 is "szaki": send "&cJuz wykorzystano kod!" every {@time} {@unit}: if {@auto-konkurs} is true: execute console command "konkurs" on chat: if message contains "%{konkurs.kod}%": cancel event if {konkurs} is 1: send "{@prefix} &7Gracz &a%player% &7odebral nagrode&7!" to all players execute console command "{@nagroda}" set {konkurs} to 0 else: message "{@prefix} &7W tej chwili, zaden konkurs nie jest aktywny!"