Oxalist

Untitled

Dec 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.21 KB | None | 0 0
  1. options:
  2. version : 0.3
  3.  
  4. command /coins:
  5. description: Check how much money you have
  6. aliases: /bal, /mon, /balance, /money
  7. trigger:
  8. message "&8» &e&lYour coins:&6 %{money-%player%}%"
  9.  
  10. command /coin-add <player> <text>:
  11. description: Set another players money
  12. usage: /coin-add <Player> <Amount>
  13. permission: coins.add
  14. trigger:
  15. if {money-%arg 1%} is not set:
  16. message "&8» &e%arg 1% &6has never joined this server!"
  17. else:
  18. add {arg2} to {money-%arg 1%}
  19. message "&8» &e$%arg 2% &6 has been added to &e%arg 1%'s &6account. &6New balance: &e%{money-%player%}%"
  20. message "&8» &6New balance: &e%{money-%player%}%"
  21.  
  22. command /coin-set <player> <text>:
  23. description: Set another players money
  24. usage: /coin-set <Player> <Amount>
  25. permission: coins.set
  26. trigger:
  27. if {money-%arg 1%} is not set:
  28. message "&8» &e%arg 1% &6has never joined this server!"
  29. else:
  30. set {money-%arg 1%} to argument 2
  31. message "&8» &e%arg 2% &6has been added to &e%arg 1%'s &6account. &6New balance: &e%{money-%player%}%"
  32. message "&8» &6New balance: &e%{money-%player%}%"
  33. command /coin <text = help>:
  34. description: Help for ajMoney
  35. usage: /coin help
  36. trigger:
  37. if arg 1 is "help":
  38. message " &6&lCoins &7&o(Coded by Anna_JWZ)"
  39. message "&7"
  40. message "&8» &e/coins &8» &6Check your balance"
  41. message "&8» &e/coins add (player) (amount) &8» &6Add coins to a player &c(ADMIN ONLY)"
  42. message "&8» &e/coins set (player) (amount) &8» &6Set the players money &c(ADMIN ONLY)"
  43. message "&8» &e/pay (player) (amount) &8» &6Pay players coins"
  44. message "&8» &e/coin help &8» &6Shows this message"
  45. message "&8» &e/resetcoins &8» &6Reset your coins"
  46. message "&7"
  47. message "&cMore commands coming soon!"
  48. message "&7"
  49.  
  50. command /pay <player> <text>:
  51. description: Pay another player
  52. usage: /pay <player> <amount>
  53. trigger:
  54. if {money-%arg 1%} is not set:
  55. message "&8» &6That player has not joined this server"
  56. else:
  57. subtract argument 2 from {money-%player%}
  58. add argument 2 to {money-%arg 1%}
  59. message "&8» &e%arg 2% &6 has been payed to &e%arg 1%'s &6account. &6New balance: &e%{money-%player%}%"
  60. send "&8» &e%player% &6has payed you&e %arg 2% &6Your new balance: &e%{money-%player%}%" to argument 1
  61.  
  62. command /resetcoins:
  63. description: Reset your couns
  64. trigger:
  65. if {resetmoney-%player%} is not set:
  66. set {resetmoney-%player%} to "needed"
  67. message "&8» &6Use &e/confirm &6within 10 seconds to confirm you really want to reset your coins &cIT WILL SET IT TO 0!!!"
  68. else:
  69. set {resetmoney-%player%} to "needed"
  70. message "&8» &6Use &e/confirm &6within 10 seconds to confirm you really want to reset your coins &cIT WILL SET IT TO 0!!!"
  71. loop 20 times:
  72. if {resetmoney-%player%} is "confirmed":
  73. delete {money-%player%}
  74. message "&8» &6Your coins has been reset!"
  75. set {resetmoney-%player%} to "done"
  76. wait 10 ticks
  77. command /confirm:
  78. description: Confirm to reset your money
  79. trigger:
  80. if {resetmoney-%player%} is "needed":
  81. set {resetmoney-%player%} to "confirmed"
  82. else:
  83. message "&8» &6Use &e/resetcoins &6first"
Advertisement
Add Comment
Please, Sign In to add comment