twogz

Untitled

Jul 24th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. options:
  2. time : 24 hours
  3.  
  4. command /rewards:
  5. trigger:
  6. open chest with 3 rows named "Daily Rewards" to player
  7.  
  8. wait 0.6 ticks
  9. difference between {dailyreward.%player%.time} and now is less than {@time}:
  10. format slot 13 of player with gunpowder named "&cYou can't claim this right now." with lore "&7Last claimed: %{dailyreward.%player%.time}%||||&fPlease wait until later to claim this again." to be unstealable
  11.  
  12. else:
  13. format slot 13 of player with experience bottle named "&aClaim your daily reward." with lore "&7You can claim this.||||&fClick to claim your reward." to run [player command "/claim"]
  14.  
  15. command /claim:
  16. trigger:
  17. difference between {dailyreward.%player%.time} and now is less than {@time}:
  18. message "&c&lHey! &7You reward is not claimable at this moment."
  19. stop
  20. else:
  21. execute console command "/xp give %player% 25"
  22. message "&3 + 25 Player XP"
  23. add 15 to player's balance
  24. message "&a + $15"
  25. give 16 coal to player
  26. message "&b + 16 coal"
  27. set {dailyreward.%player%.time} to now
  28. if inventory name of player's current inventory is "Daily Rewards":
  29.  
  30. wait 0.6 ticks
  31.  
  32. format slot 13 of player with gunpowder named "&cYou can't claim this right now." with lore "&7Last claimed: %{dailyreward.%player%.time}%||||&fPlease wait until later to claim this again." to be unstealable
Advertisement
Add Comment
Please, Sign In to add comment