MostFunGuy

Untitled

Oct 19th, 2014
570
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. #| DAILY REWARD | Crafted by KTJx2 |
  2. options:
  3. #Don't Change This
  4. version : 1.0
  5. #CONFIGURATION
  6. #reward
  7. item : diamond
  8. name : &6Daily Diamond
  9. amount : 1
  10. prefix : &9Daily Reward>
  11. #You can change this (obviously).
  12. time : 24 hours
  13. #Can be changed to give the reward more often/less often.
  14. friendlyname : 1 diamond
  15. #Friendly name for the reward.
  16.  
  17. #BEGIN CODE
  18. on player join:
  19. difference between {dailyreward.%player%.time} and now is less than {@time}:
  20. #You can add a message or events here to do stuff when they aren't ready.
  21. stop
  22. add {@amount} {@item} named "{@name}" to the player
  23. send "{@prefix} &aYou have received {@friendlyname} as your daily reward!" to player
  24. set {dailyreward.%player%.time} to now
  25. stop
  26.  
  27. on script load:
  28. set {_ver} to text from url "http://skript.ktjx2.com/ucheck/DailyReward.txt"
  29. if {_ver} is "{@version}":
  30. send "{@prefix} &aUPDATE CHECKER COMPLETE. YOU ARE RUNNING THE LATEST VERSION OF DAILY REWARD" to console
  31. stop
  32. else:
  33. send "{@prefix} &aA NEW UPDATE IS AVAILABLE FOR DAILY REWARD. DOWNLOAD IT AT http://skript.ktjx2.com/download/DailyReward.sk" to console
  34. stop
  35.  
  36. on player join:
  37. player has permission "dailyreward.updater":
  38. set {_ver} to text from url "http://skript.ktjx2.com/ucheck/DailyReward.txt"
  39. if {_ver} is "{@version}":
  40. stop
  41. else:
  42. send "{@prefix} &aA new update is available for Daily Reward! Download it at http://skript.ktjx2.com/download/DailyReward.sk" to player
Advertisement
Add Comment
Please, Sign In to add comment