1c7

Economy

1c7
Apr 30th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. #
  2. # BY @ADXM#1343
  3. #
  4. # REQUIRED: Skript
  5. # Without these, it will not work!
  6. #
  7.  
  8. options:
  9.  
  10. default-amount: 100 # Gives this amount of money to players when they join!
  11.  
  12. currency: $
  13.  
  14. P: &3&lECO&7
  15.  
  16. on join:
  17. if {eco::balance::%player's uuid%} is not set:
  18. set {eco::balance::%player's uuid%} to {@default-amount}
  19.  
  20. command /eco [<text>] [<player>] [<integer>]:
  21. trigger:
  22. if arg-1 is not set:
  23. send ""
  24. send "{@P} Commands"
  25. send ""
  26. send "&c> &7/balance"
  27. send "&c> &7/eco set [player] [amount]"
  28. send "&c> &7/eco add [player] [amount]"
  29. send "&c> &7/eco remove [player] [amount]"
  30. send "&c> &7/eco reset [player]"
  31. send ""
  32. else if arg-1 is "set":
  33. if arg-2 is set:
  34. if arg-3 is set:
  35. set {eco::balance::%arg-2's uuid%} to arg-3
  36. send "{@P} Set &3%arg-2%&7's balance to &3%arg-3%"
  37. else:
  38. send "{@P} &cUSAGE: &7/eco set [player] [amount]"
  39. else:
  40. send "{@P} &cUSAGE: &7/eco set [player] [amount]"
  41.  
  42. else if arg-1 is "add":
  43. if arg-2 is set:
  44. if arg-3 is set:
  45. add arg-3 to {eco::balance::%arg-2's uuid%}
  46. send "{@P} Added &3%arg-3% to &3%arg-2%&7's balance &o(balance: &3%{eco::balance::%arg-2's uuid%}%&7)"
  47. else:
  48. send "{@P} &cUSAGE: &7/eco add [player] [amount]"
  49. else:
  50. send "{@P} &cUSAGE: &7/eco add [player] [amount]"
  51.  
  52. else if arg-1 is "remove":
  53. if arg-2 is set:
  54. if arg-3 is set:
  55. remove arg-3 from {eco::balance::%arg-2's uuid%}
  56. send "{@P} Removed &3%arg-3% from &3%arg-2%&7's balance &o(balance: &3%{eco::balance::%arg-2's uuid%}%&7)"
  57. else:
  58. send "{@P} &cUSAGE: &7/eco remove [player] [amount]"
  59. else:
  60. send "{@P} &cUSAGE: &7/eco remove [player] [amount]"
  61.  
  62. else if arg-1 is "reset":
  63. if arg-2 is set:
  64. set {eco::balance::%arg-2's uuid%} to 0
  65. send "{@P} Reset &3%arg-2%&7's balance"
  66. else:
  67. send "{@P} &cUSAGE: &7/eco reset [player]"
  68.  
  69. command /bal:
  70. aliases: balance
  71. trigger:
  72. send "{@P} You have &3{@currency}%{eco::balance::%player's uuid%}%&7!"
Advertisement
Add Comment
Please, Sign In to add comment