PepeeYT

PEconomy

Mar 22nd, 2020
611
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.02 KB | None | 0 0
  1. #!Nie Ruszaj tego!
  2.  
  3. options:
  4. Version: 1.1.01
  5. Filename: PEconomy
  6. Prefix: &e&lPEconomy &8*
  7. start_balance: 100 #Nie używaj "," tutaj, !To można zmieniać!
  8.  
  9. #!Pierwsze wejście
  10.  
  11. on join:
  12. if {Emeralds::%uuid of player%} is not set:
  13. set {Emeralds::%uuid of player%} to {@start_balance}
  14.  
  15. #!Wpłacanie zestachowanych eme
  16.  
  17. on rightclick with emerald:
  18. if name of player's tool is "&aSzmaragdy":
  19. set {_lore::*} to lore of player's tool split at "||"
  20. set {_int} to "%uncoloured {_lore::2}%"
  21. set {_int} to {_int} parsed as integer
  22. add {_int} to {Emeralds::%uuid of player%}
  23. remove emerald of unbreaking 10 named "&aSzmaragdy" with lore "%lore of player's tool%" from player
  24. send "{@Prefix} &7Wplaciles &6%{_int}% &7szmaragdow."
  25. stop
  26.  
  27. #!Wpłacanie z eq
  28.  
  29. command /wplac [<text>]:
  30. trigger:
  31. if arg 1 is set:
  32. set {_emeralds_eq} to amount of emerald in player's inventory
  33. set {_int} to "%arg 1%" parsed as integer
  34. if {_int} = {_emeralds_eq}:
  35. if {_int} is integer:
  36. add {_int} to {Emeralds::%uuid of player%}
  37. remove {_int} of emerald from player
  38. send "{@Prefix} &7Wplaciles &6%{_int}% &7szmaragdow."
  39. else:
  40. send "{@Prefix} &7Nie posiadasz tyle szmaragdow w ekwipunku!"
  41.  
  42. #!/Portfel
  43.  
  44. command /portfel [<player>]:
  45. trigger:
  46. if arg 1 is not set:
  47. send "{@Prefix} &7Twoje srodki wynosza: &c%{Emeralds::%uuid of player%}% szmaragdow"
  48. stop
  49. if arg 1 is set:
  50. if player doesn't have permission "pe.money.others":
  51. send "{@Prefix} &cNie masz permisi!"
  52. else:
  53. send "{@Prefix} &7Srodki gracza &e%arg-1% &7wynosza: &c%{Emeralds::%uuid of player%}%"
  54. stop
  55.  
  56. #!/peconomy
  57.  
  58. command /pec [<text>] [<player>] [<text>]:
  59. permission: pe.pec
  60. permission message: {@Prefix} &cNie masz permisi!
  61. trigger:
  62. if arg 1 is not set:
  63. send "{@Prefix} &cPoprawne Uzycie: /pec <ustaw|reset|dodaj> <gracz> <liczba>"
  64. if arg 1 is "dodaj":
  65. if arg 3 is set:
  66. if arg 2 is set:
  67. set {_int} to "%arg 3%" parsed as integer
  68. if {_int} is integer:
  69. add {_int} to {Emeralds::%uuid of player%}
  70. send "{@Prefix} &7Dodano &c%{_int}% &7do portfelu gracza &e%arg 2%"
  71. if arg 1 is "ustaw":
  72. if arg 3 is set:
  73. if arg 2 is set:
  74. set {_int} to "%arg 3%" parsed as integer
  75. if {_int} is integer:
  76. set {Emeralds::%uuid of player%} to arg-3
  77. send "{@Prefix} &7Ustawiono &c%{_int}% &7jako stan portfelu gracza &e%arg 2%"
  78. if arg 1 is "reset":
  79. if arg 2 is set:
  80. set {_int} to {@start_balance}
  81. if {_int} is integer:
  82. set {Emeralds::%uuid of player%} to {@start_balance}
  83. send "{@Prefix} &7Zresetowano emeraldy gracza &e%arg 2%"
  84.  
  85. #!/wyplac
  86.  
  87. command /wyplac [<text>]:
  88. trigger:
  89. if arg 1 is set:
  90. set {_int} to "%arg 1%" parsed as integer
  91. if {_int} is integer:
  92. if {Emeralds::%uuid of player%} >= {_int}:
  93. if player has enough space for 1 emerald of unbreaking 10 named "&aSzmaragdy" with lore "&6Wartosc:||&c%{_int}%&a$":
  94. give emerald of unbreaking 10 named "&aSzmaragdy" with lore "&6Wartosc:||&c%{_int}%" to player
  95. remove {_int} from {Emeralds::%uuid of player%}
  96. send "{@Prefix} &7Wyplaciles z banku szmaragdy! &7(&c%{_int}%&7)"
  97. stop
  98. else:
  99. send "{@Prefix} &7Nie posiadasz tyle srodkow na koncie!"
  100. stop
  101.  
  102. command /peconomy [<text>]:
  103. trigger:
  104. if arg 1 is not set:
  105. send "&eWersja PEconomy: {@Version}"
  106. send "&eAby uzyskac pomoc uzyj /peconomy help"
  107. if arg 1 is "help":
  108. send "&ePomoc skryptu PEconomy"
  109. send "&c&lKomendy"
  110. send "&8* &3/pec <ustaw|reset|dodaj> <gracz> <liczba> &7- &eDodaje, ustawia i resetuje stan konta wybranego gracza"
  111. send "&8* &3/portfel <gracz> &7- &eUmozliwia sprawdzenie stanu konta/stanu konta gracza"
  112. send "&8* &3/wyplac <liczba> &7- &eWyplaca srodki w postaci jednego szmaragdu"
  113. send "&8* &3/wplac <liczba> &7- &eWplaca szmaragdy z ekwipunku na konto"
  114. send "&8* &3/pay <liczba> <gracz> &7- &eWysyla srodki innemu graczu"
  115. send "&c&lPPM"
  116. send "&8* &3PPM + wyplacony szmaragd &7- &eWplaca wyplacone srodki"
  117. send "&c&lPermisje"
  118. send "&8* &3pe.pec &7- Permisja /pec"
  119. send "&8* &3pe.money.others &7- Permisja /portfel (tylko do sprawdzania czyjegoś stanu konta.)"
  120.  
  121.  
  122.  
  123. command /pay [<text>] [<player>]:
  124. trigger:
  125. if arg 1 is not set:
  126. send "{@Prefix} &cPodaj ilosc szmaragdow, ktore chcesz wyslac graczowi."
  127. if arg 1 is set:
  128. if arg 2 is set:
  129. set {_int} to "%arg 1%" parsed as integer
  130. if {_int} is integer:
  131. if {Emeralds::%uuid of player%} >= {_int}:
  132. remove {_int} from {Emeralds::%uuid of player%}
  133. add {_int} to {Emeralds::%uuid of arg-2%}
  134. send "{@Prefix} &7Wyslano &c%{_int}% szmaragdow&7 do gracza &e%arg 2%" to player
  135. send "{@Prefix} &7Otrzymales &c%{_int}% szmaragdow&7 od gracza &e%player%" to arg-2
  136. stop
  137. if {Emeralds::%uuid of player%} < {_int}:
  138. send "{@Prefix} &cNie masz wystarczajacych srodkow na koncie!" to player
  139. if arg 2 is not set:
  140. send "{@Prefix} &cPodaj nazwe gracza!"
Advertisement
Add Comment
Please, Sign In to add comment