options:
bn: &8[&7B&aa&7n&ak&7n&ao&7t&ay&8] &7
command /banknot [<text>]:
permission: BankNote.wyplac
permission message: {@bn} &cNie masz uprawnien do &b(BankNote.wyplac)
trigger:
if arg 1 is "100":
execute console command "eco take %player% 100"
give player 1 paper named "&7Banknot o wartosci &8100&a$"
send "{@bn} Wyplaciles banknot &8100&a$"
stop
if arg 1 is "1000":
execute console command "eco take %player% 1000"
give player 1 paper named "&7Banknot o wartosci &81000&a$"
send "{@bn} Wyplaciles banknot &81000&a$"
stop
if arg 1 is "10000":
execute console command "eco take %player% 10000"
give player 1 paper named "&7Banknot o wartosci &810000&a$"
send "{@bn} Wyplaciles banknot &810000&a$"
stop
stop
else:
send "{@bn} &cAby wyplacic banknot musisz podac jedo wartosc &8(&aWartosci: &7100, 1000, 10000&8)&7&oUzyj: /banknot <kwota>"
on right click:
if player has 1 paper named "&7Banknot o wartosci &8100&a$":
remove 1 paper named "&7Banknot o wartosci &8100&a$" from player
execute console command "eco give %player% 100"
send "{@bn} &7Wplaciles banknot! Do twojego konta zostalo dodane &7100$"
if player has 1 paper named "&7Banknot o wartosci &81000&a$":
remove 1 paper named "&7Banknot o wartosci &81000&a$" from player
execute console command "eco give %player% 1000"
send "{@bn} &aWplaciles banknot! Do twojego konta zostalo dodane &71000$"
if player has 1 paper named "&7Banknot o wartosci &810000&a$":
remove 1 paper named "&7Banknot o wartosci &810000&a$" from player
execute console command "eco give %player% 10000"
send "{@bn} &aWplaciles banknot! Do twojego konta zostalo dodane &810000&a