#!Nie Ruszaj tego! options: Version: V1.0 Filename: PEconomy Prefix: &e&lPEconomy &8* start_balance: 100 #Nie używaj "," tutaj, !To można zmieniać! Reset_To_Starting_Balance: true #!Pierwsze wejście on join: if {Emeralds::%uuid of player%} is not set: set {Emeralds::%uuid of player%} to {@start_balance} if {Bank::%uuid of player%} is not set: set {Bank::%uuid of player%} to "false" if {bank::%arg-1%::access} is not set: set {bank::%arg-1%::access} to "false" #!Wpłacanie zestachowanych eme on rightclick with emerald: if name of player's tool is "&aSzmaragdy": set {_lore::*} to lore of player's tool split at "||" set {_int} to "%uncoloured {_lore::2}%" set {_int} to {_int} parsed as integer add {_int} to {Emeralds::%uuid of player%} remove emerald of unbreaking 10 named "&aSzmaragdy" with lore "%lore of player's tool%" from player send "{@Prefix} &7Wplaciles &6%{_int}% &7szmaragdow." stop #!Wpłacanie z eq command /wplac []: trigger: if arg 1 is set: set {_emeralds_eq} to amount of emerald in player's inventory set {_int} to "%arg 1%" parsed as integer if {_int} = {_emeralds_eq}: if {_int} is integer: add {_int} to {Emeralds::%uuid of player%} remove {_int} of emerald from player send "{@Prefix} &7Wplaciles &6%{_int}% &7szmaragdow." else: send "{@Prefix} &7Nie posiadasz tyle szmaragdów w ekwipunku!" #!/Portfel command /portfel []: trigger: if arg 1 is not set: send "{@Prefix} &7Twoje srodki wynosza: &c%{Emeralds::%uuid of player%}%" stop if arg 1 is set: if player doesn't have permission "peconomy.money.others": send "{@Prefix} &cNie masz permisi!" else: send "{@Prefix} &7Srodki gracza &e%arg-1% &7wynosza: &c%{Emeralds::%uuid of player%}%" stop #!/peconomy command /pec [] [] []: permission: pec.peccomand permission message: {@Prefix} &cNie masz permisi! trigger: if arg 1 is not set: send "{@Prefix} &cPoprawne Uzycie: /pec " if arg 1 is "dodaj": if arg 3 is set: if arg 2 is set: set {_int} to "%arg 3%" parsed as integer if {_int} is integer: add {_int} to {Emeralds::%uuid of player%} send "{@Prefix} &7Dodano &c%{_int}% &7do portfelu gracza &e%arg 2%" if arg 1 is "ustaw": if arg 3 is set: if arg 2 is set: set {_int} to "%arg 3%" parsed as integer if {_int} is integer: set {Emeralds::%uuid of player%} to arg-3 send "{@Prefix} &7Ustawiono &c%{_int}% &7jako stan portfelu gracza &e%arg 2%" if arg 1 is "reset": if arg 2 is set: set {_int} to {@start_balance} if {_int} is integer: set {Emeralds::%uuid of player%} to {@start_balance} send "{@Prefix} &7Zresetowano emeraldy gracza &e%arg 2%" #!/wyplac command /wyplac []: trigger: if arg 1 is set: set {_int} to "%arg 1%" parsed as integer if {_int} is integer: if {Emeralds::%uuid of player%} >= {_int}: if player has enough space for 1 emerald of unbreaking 10 named "&aSzmaragdy" with lore "&6Wartosc:||&c%{_int}%&a$": give emerald of unbreaking 10 named "&aSzmaragdy" with lore "&6Wartosc:||&c%{_int}%" to player remove {_int} from {Emeralds::%uuid of player%} send "{@Prefix} &7Wyplaciles z banku szmaragdy! &c(&e%{_int}%&c)" stop else: send "{@Prefix} &7Nie posiadasz tyle srodkow na koncie!" stop command /peconomy []: trigger: if arg 1 is not set: send "&eWersja PEconomy:{@Version}" send "&eAby uzyskac pomoc uzyj /peconomy help" if arg 1 is "help": send "&ePomoc skryptu PEconomy" send "&c&lKomendy" send "&8* &3/pec &7- &eDodaje, ustawia i resetuje stan konta wybranego gracza" send "&8* &3/portfel &7- &eUmozliwia sprawdzenie stanu konta/ stanu konta gracza" send "&8* &3/wyplac &7- &eWyplaca srodki w postaci jednego szmaragdu" send "&8* &3/wplac &7- &eWplaca szmaragdy z ekwipunku na konto" send "&c&lPPM" send "&8* &3PPM + wyplacony szmaragd &7- &eWplaca wyplacone srodki" send "&c&lPermisje" send "&8* &3pec.peccomand &7- Permisja /pec" send "&8* &3peconomy.money.others &7- Permisja /portfel (tylko do sprawdzania czyjegoś stanu konta.)"