Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #v1
- command /rewards:
- trigger:
- make console execute "/menu open %player% rewards"
- command /reward [<text>] [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- send "&6&l----- &8[&5 Rewards &8] &6&l-----%nl%&6/reward claim <name>%nl%&6&l--------------------"
- if arg 1 is "claim":
- if arg 2 is not set:
- send "&6&l----- &8[&5 Available Rewards &8] &6&l-----%nl%&6Daily%nl%&6Weekly%nl%&6Monthly%nl%&6&l--------------------"
- if arg 1 is "claim":
- if arg 2 is "Daily":
- if {daily.%player%} is set:
- if {daily.%player%} is not 0:
- send "&6Your &5Daily &6reward is currently on cooldown"
- if {daily.%player%} is 0:
- make console execute "/eco give %player% 50"
- send "&6You claimed your &5Daily &6 reward and received $50"
- set {daily.%player%} to 86400
- if {daily.%player%} is not set:
- make console execute "/eco give %player% 50"
- send "&6You claimed your &5Daily &6 reward and received $50"
- set {daily.%player%} to 86400
- command /resetcooldown [<player>] [<text>]:
- permission: staff.resetcooldown
- trigger:
- set {%arg 2%.%arg 1%} to 0
- send "&7[&5Rewards&7] &a%arg 1%'s &5%arg 2% &acooldown should be reset"
Advertisement
Add Comment
Please, Sign In to add comment