Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!Nie Ruszaj tego!
- options:
- Version: 1.1.01
- Filename: PEconomy
- Prefix: &e&lPEconomy &8*
- start_balance: 100 #Nie używaj "," tutaj, !To można zmieniać!
- #!Pierwsze wejście
- on join:
- if {Emeralds::%uuid of player%} is not set:
- set {Emeralds::%uuid of player%} to {@start_balance}
- #!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 [<text>]:
- 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 szmaragdow w ekwipunku!"
- #!/Portfel
- command /portfel [<player>]:
- trigger:
- if arg 1 is not set:
- send "{@Prefix} &7Twoje srodki wynosza: &c%{Emeralds::%uuid of player%}% szmaragdow"
- stop
- if arg 1 is set:
- if player doesn't have permission "pe.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 [<text>] [<player>] [<text>]:
- permission: pe.pec
- permission message: {@Prefix} &cNie masz permisi!
- trigger:
- if arg 1 is not set:
- send "{@Prefix} &cPoprawne Uzycie: /pec <ustaw|reset|dodaj> <gracz> <liczba>"
- 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 [<text>]:
- 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! &7(&c%{_int}%&7)"
- stop
- else:
- send "{@Prefix} &7Nie posiadasz tyle srodkow na koncie!"
- stop
- command /peconomy [<text>]:
- 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 <ustaw|reset|dodaj> <gracz> <liczba> &7- &eDodaje, ustawia i resetuje stan konta wybranego gracza"
- send "&8* &3/portfel <gracz> &7- &eUmozliwia sprawdzenie stanu konta/stanu konta gracza"
- send "&8* &3/wyplac <liczba> &7- &eWyplaca srodki w postaci jednego szmaragdu"
- send "&8* &3/wplac <liczba> &7- &eWplaca szmaragdy z ekwipunku na konto"
- send "&8* &3/pay <liczba> <gracz> &7- &eWysyla srodki innemu graczu"
- send "&c&lPPM"
- send "&8* &3PPM + wyplacony szmaragd &7- &eWplaca wyplacone srodki"
- send "&c&lPermisje"
- send "&8* &3pe.pec &7- Permisja /pec"
- send "&8* &3pe.money.others &7- Permisja /portfel (tylko do sprawdzania czyjegoś stanu konta.)"
- command /pay [<text>] [<player>]:
- trigger:
- if arg 1 is not set:
- send "{@Prefix} &cPodaj ilosc szmaragdow, ktore chcesz wyslac graczowi."
- if arg 1 is set:
- if arg 2 is set:
- set {_int} to "%arg 1%" parsed as integer
- if {_int} is integer:
- if {Emeralds::%uuid of player%} >= {_int}:
- remove {_int} from {Emeralds::%uuid of player%}
- add {_int} to {Emeralds::%uuid of arg-2%}
- send "{@Prefix} &7Wyslano &c%{_int}% szmaragdow&7 do gracza &e%arg 2%" to player
- send "{@Prefix} &7Otrzymales &c%{_int}% szmaragdow&7 od gracza &e%player%" to arg-2
- stop
- if {Emeralds::%uuid of player%} < {_int}:
- send "{@Prefix} &cNie masz wystarczajacych srodkow na koncie!" to player
- if arg 2 is not set:
- send "{@Prefix} &cPodaj nazwe gracza!"
Advertisement
Add Comment
Please, Sign In to add comment