Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- # +----------------------------------------------------------------------------------------------+
- # Jaka permisje musi posiadac gracz, aby uzyc komendy /doladowanie・
- permisja-doladowanie: wpln.doladuj
- # Jaka permisje musi posiadac gracz aby uzyc komendy /itemshop・
- permisja-gui: wpln.gui
- # Dodatkowe komendy, ktore zastepuja komende /itemshop
- dodatkowe-komendy: rangi, ranga, sklep, premiumrangi
- # Przedrostek kazdej wiadomosci. Uzywajac gradientu ze strony
- # https://rgb.birdflop.com/
- # Zaznacz w opcji "Outpot Format" z Default na "Legacy"
- # Jezeli chcesz uzyc jednego koloru HEX, zapisz go w takiej postaci:
- # <##7BFB09>
- prefix: &x&0&8&4&c&f&bB&x&0&7&5&a&f&bI&x&0&6&6&8&f&bS&x&0&6&7&6&f&cc&x&0&5&8&4&f&cr&x&0&4&9&2&f&ca&x&0&3&9&f&f&cf&x&0&2&a&d&f&ct&x&0&2&b&b&f&d.&x&0&1&c&9&f&dp&x&0&0&d&7&f&dl &8»
- # Wiadomosc, ktora zostanie wyslana, gdy gracz nie ma permisji do /doladowanie
- brakpermisji-doladowanie: &cNie posiadasz permisji!
- # Wiadomosc, ktora zostanie wyslana, gdy gracz nie ma permisji do otwarcia gui.
- brakpermisji-otwarcie-gui: &cNie posiadasz permisji do otwarcia GUI!
- # Waluta serwerowa
- # Ktora wyswietla sie jako tzw. suffix po podanej liczbie.
- # e.g Doladowano ci 10wPLN! <- W tym przypadku
- waluta: PLN
- # Link do itemshopu
- # Link, ktory wyswietli sie po komendzie /itemshop link
- itemshop-linkt: http://www.biscraft.pl
- # Nazwa rangi
- rank1-name: &a&lVIP
- # Cena rangi
- # Pamietaj, nie podawaj waluty np. "wPLN"
- rank1-price: 6,99
- # Komenda ktora sie wykona po zakupie rangi
- # Pamietaj, komendy pisz bez "/"! To wazne!
- rank1-cmd: lp user %player% parent addtemp vip 30d
- # Powtarzaj ta czynnosc z pozostalymi 3 rangami.
- rank2-name: &a&lVIP&a&l+
- rank2-price: 11.99
- rank2-cmd: lp user %player% parent addtemp vip+ 30d
- rank3-name: &a&lElita
- rank3-price: 25
- rank3-cmd: lp user %player% parent addtemp elita 30d
- rank4-name: &a&lS&b&lp&c&lo&d&ln&e&ls&a&lo&b&lr
- rank4-price: 80
- rank4-cmd: lp user %player% parent addtemp sponsor 30d
- # +----------------------------------------------------------------------------------------------+
- variables:
- {betteritemshop::wpln::%player%} = 0
- command /doladowanie [<offlineplayer>] [<number>]:
- permission: {@permisja-doladowanie}
- permission message: {@prefix} {@brakpermisji-doladowanie}
- trigger:
- if arg 2 is set:
- add arg 2 to {betteritemshop::wpln::%arg 1%}
- send "{@prefix} &aPomyslnie doladowano &7%arg 2% {@waluta} &agraczowi &7%arg 1%"
- send "" to all players
- send "&8+&8&m &8+" to all players
- send "" to all players
- send "&7Gracz &a%arg 1% &7zakupil doladowanie &a%arg 2% {@waluta}&7!" to all players
- send "" to all players
- send "&8+&8&m &8+" to all players
- send "" to all players
- if arg 1 is not executor:
- send "{@prefix} &aNa twoje wirtualne saldo zostalo dodane &7%arg 2% {@waluta}" to arg 1
- command /itemshop [<text>]:
- aliases: {@dodatkowe-komendy}
- trigger:
- if arg 1 is not set:
- set {gui1} to chest inventory with 1 row named "&8» &bItemshop"
- set slot 2 of {gui1} to ("%player%" parsed as offline player)'s skull with name "&e&lDOLADOWANIE" with lore " &7Jak dolacowac・napisz do papuga9402 na discord"
- set slot 4 of {gui1} to dead bush with name "&c&lSTAN PORTFELA" with lore " &7Obecnie posiadasz: &f%{betteritemshop::wpln::%player%}% {@waluta}%nl% %nl% &8» &eChcesz zakupic doladowanie・ Zakup je na naszym sklepie! %nl% &8» &aLink obok! %nl% %nl% &8» &4Pieniadze nie podlegaja zwrotowi. Jest to wirtalna waluta. "
- set slot 6 of {gui1} to emerald with name "&a&lPRZEJDZ DO ZAKUPU RANG &8--->"
- open {gui1} to player
- if arg 1 is "link":
- send "{@prefix} &7Zakup range na stronie <tooltip:&b&nwww.biscraft.pl&7><link:{@itemshop-link}>&b*&b&nLINK&b*"
- on inventory click:
- event-inventory is not player's inventory
- if name of event-inventory is "&8» &bItemshop":
- cancel event
- if clicked slot is 2:
- close player's inventory
- execute player command "itemshop link"
- if clicked slot is 6:
- if world is "boxpvp":
- set {_gui2} to chest inventory with 5 rows named "&8» &9Zakup rang"
- set slot 10 of {_gui2} to paper of unbreaking 10 with name "&7Zakup rangi {@rank1-name} &f(Koszt: {@rank1-price} {@waluta})" with lore " &aKliknij by zakupic range {@rank1-name}&a za &f{@rank1-price} {@waluta} %nl% %nl% &8» &4Pamietaj! Rangi nie podlegaja zwrotowi!"
- set slot 12 of {_gui2} to paper of unbreaking 10 with name "&7Zakup rangi {@rank2-name} &f(Koszt: {@rank2-price} {@waluta})" with lore " &aKliknij by zakupic range {@rank2-name}&a za &f{@rank2-price} {@waluta} %nl% %nl% &8» &4Pamietaj! Rangi nie podlegaja zwrotowi!"
- set slot 14 of {_gui2} to paper of unbreaking 10 with name "&7Zakup rangi {@rank3-name} &f(Koszt: {@rank3-price} {@waluta})" with lore " &aKliknij by zakupic range {@rank3-name}&a za &f{@rank3-price} {@waluta} %nl% %nl% &8» &4Pamietaj! Rangi nie podlegaja zwrotowi!"
- set slot 16 of {_gui2} to paper of unbreaking 10 with name "&7Zakup rangi {@rank4-name} &f(Koszt: {@rank4-price} {@waluta})" with lore " &aKliknij by zakupic range {@rank4-name}&a za &f{@rank4-price} {@waluta} %nl% %nl% &8» &4Pamietaj! Rangi nie podlegaja zwrotowi!"
- set slot 28 of {_gui2} to tripwire hook of unbreaking 10 with name "&7Zakup klucza &2・ &aRzadki Klucz &2・ &f(Koszt: 0,50 {@waluta})" with lore " &aKliknij by zakupic &2・ &aRzadki Klucz &2・&a za &f0,5 {@waluta} %nl% %nl% &8» &4Pamietaj! Klucze nie podlegaja zwrotowi!"
- set slot 30 of {_gui2} to tripwire hook of unbreaking 10 with name "&7Zakup klucza &5・ &dEpicki Klucz &5・ &f(Koszt: 1 {@waluta})" with lore " &aKliknij by zakupic &5・ &dEpicki Klucz &5・&a za &f1 {@waluta} %nl% %nl% &8» &4Pamietaj! Klucze nie podlegaja zwrotowi!"
- set slot 32 of {_gui2} to tripwire hook of unbreaking 10 with name "&7Zakup klucza &6・ &eLegendarny Klucz &6・ &f(Koszt: 2,5 {@waluta})" with lore " &aKliknij by zakupic &6・ &eLegendarny Klucz &6・&a za &f2,5 {@waluta} %nl% %nl% &8» &4Pamietaj! Klucze nie podlegaja zwrotowi!"
- set slot 34 of {_gui2} to tripwire hook of unbreaking 10 with name "&7Zakup klucza &9・ &bMityczny Klucz &9・ &f(Koszt: 5 {@waluta})" with lore " &aKliknij by zakupic &9・ &bMityczny Klucz &9・&a za &f5 {@waluta} %nl% %nl% &8» &4Pamietaj! Klucze nie podlegaja zwrotowi!"
- open {_gui2} to player
- else:
- set {_gui2} to chest inventory with 3 rows named "&8» &9Zakup rang"
- set slot 10 of {_gui2} to paper of unbreaking 10 with name "&7Zakup rangi {@rank1-name} &f(Koszt: {@rank1-price} {@waluta})" with lore " &aKliknij by zakupic range {@rank1-name}&a za &f{@rank1-price} {@waluta} %nl% %nl% &8» &4Pamietaj! Rangi nie podlegaja zwrotowi!"
- set slot 12 of {_gui2} to paper of unbreaking 10 with name "&7Zakup rangi {@rank2-name} &f(Koszt: {@rank2-price} {@waluta})" with lore " &aKliknij by zakupic range {@rank2-name}&a za &f{@rank2-price} {@waluta} %nl% %nl% &8» &4Pamietaj! Rangi nie podlegaja zwrotowi!"
- set slot 14 of {_gui2} to paper of unbreaking 10 with name "&7Zakup rangi {@rank3-name} &f(Koszt: {@rank3-price} {@waluta})" with lore " &aKliknij by zakupic range {@rank3-name}&a za &f{@rank3-price} {@waluta} %nl% %nl% &8» &4Pamietaj! Rangi nie podlegaja zwrotowi!"
- set slot 16 of {_gui2} to paper of unbreaking 10 with name "&7Zakup rangi {@rank4-name} &f(Koszt: {@rank4-price} {@waluta})" with lore " &aKliknij by zakupic range {@rank4-name}&a za &f{@rank4-price} {@waluta} %nl% %nl% &8» &4Pamietaj! Rangi nie podlegaja zwrotowi!"
- open {_gui2} to player
- on inventory click:
- if name of event-inventory is "&8» &9Zakup rang":
- cancel event
- if clicked slot is 10:
- close player's inventory
- if {betteritemshop::wpln::%player%} >= {@rank1-price}:
- remove {@rank1-price} from {betteritemshop::wpln::%player%}
- execute command "{@rank1-cmd}"
- send "{@prefix} &aPomyslnie zakupiles {@rank1-name}&a za &f{@rank1-price} {@waluta}"
- send "&aObecnie posiadasz: &f%{betteritemshop::wpln::%player%}% {@waluta}"
- send "" to all players
- send "&8+&8&m &8+" to all players
- send "" to all players
- send "&7Gracz &a%player% &7zakupil range {@rank1-name}&7!" to all players
- send "" to all players
- send "&8+&8&m &8+" to all players
- send "" to all players
- else:
- send "{@prefix} &cNie masz wystarczajaco pieniedzy! %nl% &cObecnie masz &f%{betteritemshop::wpln::%player%}% {@waluta}"
- if clicked slot is 12:
- close player's inventory
- if {betteritemshop::wpln::%player%} >= {@rank2-price}:
- remove {@rank2-price} from {betteritemshop::wpln::%player%}
- execute command "{@rank2-cmd}"
- send "{@prefix} &aPomyslnie zakupiles {@rank2-name}&a za &f{@rank2-price} {@waluta}"
- send "&aObecnie posiadasz: &f%{betteritemshop::wpln::%player%}% {@waluta}"
- send "" to all players
- send "&8+&8&m &8+" to all players
- send "" to all players
- send "&7Gracz &a%player% &7zakupil range {@rank1-name}&7!" to all players
- send "" to all players
- send "&8+&8&m &8+" to all players
- send "" to all players
- else:
- send "{@prefix} &cNie masz wystarczajaco pieniedzy! %nl% &cObecnie masz &f%{betteritemshop::wpln::%player%}% {@waluta}"
- if clicked slot is 14:
- close player's inventory
- if {betteritemshop::wpln::%player%} >= {@rank3-price}:
- remove {@rank3-price} from {betteritemshop::wpln::%player%}
- execute command "{@rank3-cmd}"
- send "{@prefix} &aPomyslnie zakupiles {@rank3-name}&a za &f{@rank3-price} {@waluta}"
- send "&aObecnie posiadasz: &f%{betteritemshop::wpln::%player%}% {@waluta}"
- send "" to all players
- send "&8+&8&m &8+" to all players
- send "" to all players
- send "&7Gracz &a%player% &7zakupil range {@rank1-name}&7!" to all players
- send "" to all players
- send "&8+&8&m &8+" to all players
- send "" to all players
- else:
- send "{@prefix} &cNie masz wystarczajaco pieniedzy! %nl% &cObecnie masz &f%{betteritemshop::wpln::%player%}% {@waluta}"
- if clicked slot is 16:
- close player's inventory
- if {betteritemshop::wpln::%player%} >= {@rank4-price}:
- remove {@rank4-price} from {betteritemshop::wpln::%player%}
- execute command "{@rank4-cmd}"
- send "{@prefix} &aPomyslnie zakupiles {@rank4-name}&a za &f{@rank4-price} {@waluta}"
- send "&aObecnie posiadasz: &f%{betteritemshop::wpln::%player%}% {@waluta}"
- send "" to all players
- send "&8+&8&m &8+" to all players
- send "" to all players
- send "&7Gracz &a%player% &7zakupil range {@rank1-name}&7!" to all players
- send "" to all players
- send "&8+&8&m &8+" to all players
- send "" to all players
- else:
- send "{@prefix} &cNie masz wystarczajaco pieniedzy! %nl% &cObecnie masz &f%{betteritemshop::wpln::%player%}% {@waluta}"
- if world is "boxpvp":
- if clicked slot is 28:
- close player's inventory
- if {betteritemshop::wpln::%player%} >= 0.50:
- remove 0.50 from {betteritemshop::wpln::%player%}
- execute command "excellentcrates key give %player% rzadki-klucz"
- send "{@prefix} &aPomyslnie zakupiles {@rank4-name}&a za &f{@rank4-price} {@waluta}"
- send "&aObecnie posiadasz: &f%{betteritemshop::wpln::%player%}% {@waluta}"
- send "" to all players
- send "&8+&8&m &8+" to all players
- send "" to all players
- send "&7Gracz &a%player% &7zakupil &2・ &aRzadki Klucz &2・ &7!" to all players
- send "" to all players
- send "&8+&8&m &8+" to all players
- send "" to all players
- else:
- send "{@prefix} &cNie masz wystarczajaco pieniedzy! %nl% &cObecnie masz &f%{betteritemshop::wpln::%player%}% {@waluta}"
- if clicked slot is 30:
- close player's inventory
- if {betteritemshop::wpln::%player%} >= 1:
- remove 1 from {betteritemshop::wpln::%player%}
- execute command "excellentcrates key give %player% epicki-klucz"
- send "{@prefix} &aPomyslnie zakupiles {@rank4-name}&a za &f1 {@waluta}"
- send "&aObecnie posiadasz: &f%{betteritemshop::wpln::%player%}% {@waluta}"
- send "" to all players
- send "&8+&8&m &8+" to all players
- send "" to all players
- send "&7Gracz &a%player% &7zakupil &5・ &dEpicki Klucz &5・ &7!" to all players
- send "" to all players
- send "&8+&8&m &8+" to all players
- send "" to all players
- else:
- send "{@prefix} &cNie masz wystarczajaco pieniedzy! %nl% &cObecnie masz &f%{betteritemshop::wpln::%player%}% {@waluta}"
- if clicked slot is 32:
- close player's inventory
- if {betteritemshop::wpln::%player%} >= 2.5:
- remove 2.5 from {betteritemshop::wpln::%player%}
- execute command "excellentcrates key give %player% legendarna"
- send "{@prefix} &aPomyslnie zakupiles {@rank4-name}&a za &f2,5 {@waluta}"
- send "&aObecnie posiadasz: &f%{betteritemshop::wpln::%player%}% {@waluta}"
- send "" to all players
- send "&8+&8&m &8+" to all players
- send "" to all players
- send "&7Gracz &a%player% &7zakupil &6・ &eLegendarny Klucz &6・ &7!" to all players
- send "" to all players
- send "&8+&8&m &8+" to all players
- send "" to all players
- else:
- send "{@prefix} &cNie masz wystarczajaco pieniedzy! %nl% &cObecnie masz &f%{betteritemshop::wpln::%player%}% {@waluta}"
- if clicked slot is 34:
- close player's inventory
- if {betteritemshop::wpln::%player%} >= 5:
- remove 5 from {betteritemshop::wpln::%player%}
- execute command "excellentcrates key give %player% mityczny-klucz"
- send "{@prefix} &aPomyslnie zakupiles {@rank4-name}&a za &f5 {@waluta}"
- send "&aObecnie posiadasz: &f%{betteritemshop::wpln::%player%}% {@waluta}"
- send "" to all players
- send "&8+&8&m &8+" to all players
- send "" to all players
- send "&7Gracz &a%player% &7zakupil &9・ &bMityczny Klucz &9・ &7!" to all players
- send "" to all players
- send "&8+&8&m &8+" to all players
- send "" to all players
- else:
- send "{@prefix} &cNie masz wystarczajaco pieniedzy! %nl% &cObecnie masz &f%{betteritemshop::wpln::%player%}% {@waluta}"
- command /przelej [<player>] [<number>]:
- usage: &8» &cNieprawidlowy gracz lub liczba!
- trigger:
- if arg 2 is set:
- if {betteritemshop::wpln::%player%} >= arg 2:
- remove arg 2 from {betteritemshop::wpln::%player%}
- add arg 2 to {betteritemshop::wpln::%arg 1%}
- send "&8» &aWyslales &7%arg 2% {@waluta} &ado &7%arg 1%" to player
- send "&8» &7%player% &awyslal ci &7%arg 2% {@waluta}&a! Masz teraz &7%{betteritemshop::wpln::%arg 1%}%" to arg 1
- else:
- send "&8» &aNie posiadasz tyle pieniedzy! &7(%{betteritemshop::wpln::%player%}% {@waluta})"
- on placeholderapi placeholder request for the prefix "betteritemshop":
- if the identifier is "wpln":
- set the result to "%{betteritemshop::wpln::%player%}%"
Advertisement
Add Comment
Please, Sign In to add comment