1c7

PerWorldEconomy

1c7
Apr 30th, 2020
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. #
  2. # By @Adxm#1343
  3. #
  4.  
  5. options:
  6. P: &3&lPWE&f
  7. S: $ # Money sign.
  8. command /pwe [<text>] [<offlineplayer>] [<integer>]:
  9. trigger:
  10. if arg-1 is "set":
  11. if arg-2 is set:
  12. if arg-3 is set:
  13. set {eco::%arg-2's uuid%::%player's world%} to arg-3
  14. send "{@P} %arg-2% now has {@S}%{eco::%arg-2's uuid%::%player's world%}% in world %player's world%."
  15. else:
  16. send "{@P} Syntax: /pwe set (player) (amount)."
  17. else:
  18. send "{@P} Syntax: /pwe set (player) (amount)."
  19. else if arg-1 is "give":
  20. if arg-2 is set:
  21. if arg-3 is set:
  22. add arg-3 to {eco::%arg-2's uuid%::%player's world%}
  23. send "{@P} %arg-2% now has {@S}%{eco::%arg-2's uuid%::%player's world%}% in world %player's world%."
  24. else:
  25. send "{@P} Syntax: /pwe give (player) (amount)."
  26. else:
  27. send "{@P} Syntax: /pwe give (player) (amount)."
  28. else if arg-1 is "remove":
  29. if arg-2 is set:
  30. if arg-3 is set:
  31. remove arg-3 from {eco::%arg-2's uuid%::%player's world%}
  32. send "{@P} %arg-2% now has {@S}%{eco::%arg-2's uuid%::%player's world%}% in world %player's world%."
  33. else:
  34. send "{@P} Syntax: /pwe remove (player) (amount)."
  35. else:
  36. send "{@P} Syntax: /pwe remove (player) (amount)."
  37. else:
  38. send "{@P} Commands"
  39. send "&7> &b/pwe set (player) (amount)"
  40. send "&7> &b/pwe give (player) (amount)"
  41. send "&7> &b/pwe remove (player) (amount)"
  42. send "&7> &b/bal [player] [world]"
  43. on join:
  44. if {eco::%player's uuid%::%player's world%} is not set:
  45. set {eco::%player's uuid%::%player's world%} to 0
  46. on world change:
  47. wait 1 second
  48. if {eco::%player's uuid%::%player's world%} is not set:
  49. set {eco::%player's uuid%::%player's world%} to 0
  50.  
  51. command /bal [<offlineplayer>] [<text>]:
  52. trigger:
  53. if arg-2 is not set:
  54. if arg-1 is set:
  55. send "{@P} %arg-1%'s balance in this world: {@S}%{eco::%arg-1's uuid%::%player's world%}%."
  56. else:
  57. send "{@P} Your balance in this world: {@S}%{eco::%player's uuid%::%player's world%}%."
  58. else:
  59. send "{@P} %arg-1%'s balance in %arg-2%: {@S}%{eco::%arg-1's uuid%::%arg-2%}%."
Advertisement
Add Comment
Please, Sign In to add comment