options: czas: 1200 # tu ustaw czas po jakim konkurs ma sie rozpoczac ilosc: 5 # ilosc itemu po wpisaniu wlasciwego kodu item: emerald # jaki item ma dostawac osoba bo wpisaniu kodu gracze: 50 # ile graczy potrzeba do rozpoczencia konkursu variables: {konkurs} = 0 every {@czas} seconds: if {@gracze} is smaller than number of players: execute console command "konkurs" command /konkurs []: trigger: if sender has permission "mcgramy.konkurs": loop 6 times: set {konkurs.znak%loop-number%} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or "a" or "A" or "b" or "B" or "c" or "C" or "d" or "D" or "e" or "E" or "f" or "F" or "g" or "G" or "h" or "H" or "k" or "K" or "l" or "L" or "m" or "M" or "n" or "N" or "o" or "O" or "p" or "P" or "q" or "Q" or "r" or "R" or "s" or "S" or "t" or "T" or "u" or "U" or "v" or "V" or "w" or "W" or "x" or "X" or "y" or "Y" or "z" or "Z" set {konkurs.kod} to "%{konkurs.znak1}%%{konkurs.znak2}%%{konkurs.znak3}%%{konkurs.znak4}%%{konkurs.znak5}%%{konkurs.znak6}%" set {konkurs} to 1 loop all players: execute console command "playsound mob.villager.yes %loop-player%" broadcast "&8» &7Magiczny kod to &a%{konkurs.kod}%&7 aby go wprowadzic i wygrac nagrode wpisz kod na chacie." else: message "&8» &aNie masz uprawnien do tego!" on chat: if {konkurs} is 1: if message contains "%{konkurs.kod}%": cancel event set {konkurs} to 0 broadcast "&8» &c&lPlugin by Starplacek broadcast "&8» &7Konkurs magiczny kod wygrywa &a%player%&7." add 1 to {wygrane::%player%} give {@ilosc} {@item} to player loop all players: execute console command "playsound mob.villager.yes %loop-player%"