toxamin

Untitled

Mar 27th, 2018
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. #v1
  2. command /rewards:
  3. trigger:
  4. make console execute "/menu open %player% rewards"
  5.  
  6. command /reward [<text>] [<text>] [<text>]:
  7. trigger:
  8. if arg 1 is not set:
  9. send "&6&l----- &8[&5 Rewards &8] &6&l-----%nl%&6/reward claim <name>%nl%&6&l--------------------"
  10. if arg 1 is "claim":
  11. if arg 2 is not set:
  12. send "&6&l----- &8[&5 Available Rewards &8] &6&l-----%nl%&6Daily%nl%&6Weekly%nl%&6Monthly%nl%&6&l--------------------"
  13. if arg 1 is "claim":
  14. if arg 2 is "Daily":
  15. if {daily.%player%} is set:
  16. if {daily.%player%} is not 0:
  17. send "&6Your &5Daily &6reward is currently on cooldown"
  18. if {daily.%player%} is 0:
  19. make console execute "/eco give %player% 50"
  20. send "&6You claimed your &5Daily &6 reward and received $50"
  21. set {daily.%player%} to 86400
  22. if {daily.%player%} is not set:
  23. make console execute "/eco give %player% 50"
  24. send "&6You claimed your &5Daily &6 reward and received $50"
  25. set {daily.%player%} to 86400
  26.  
  27. command /resetcooldown [<player>] [<text>]:
  28. permission: staff.resetcooldown
  29. trigger:
  30. set {%arg 2%.%arg 1%} to 0
  31. send "&7[&5Rewards&7] &a%arg 1%'s &5%arg 2% &acooldown should be reset"
Advertisement
Add Comment
Please, Sign In to add comment