Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #| DAILY REWARD | Crafted by KTJx2 |
- options:
- #Don't Change This
- version : 1.0
- #CONFIGURATION
- #reward
- item : diamond
- name : &6Daily Diamond
- amount : 1
- prefix : &9Daily Reward>
- #You can change this (obviously).
- time : 24 hours
- #Can be changed to give the reward more often/less often.
- friendlyname : 1 diamond
- #Friendly name for the reward.
- #BEGIN CODE
- on player join:
- difference between {dailyreward.%player%.time} and now is less than {@time}:
- #You can add a message or events here to do stuff when they aren't ready.
- stop
- add {@amount} {@item} named "{@name}" to the player
- send "{@prefix} &aYou have received {@friendlyname} as your daily reward!" to player
- set {dailyreward.%player%.time} to now
- stop
- on script load:
- set {_ver} to text from url "http://skript.ktjx2.com/ucheck/DailyReward.txt"
- if {_ver} is "{@version}":
- send "{@prefix} &aUPDATE CHECKER COMPLETE. YOU ARE RUNNING THE LATEST VERSION OF DAILY REWARD" to console
- stop
- else:
- send "{@prefix} &aA NEW UPDATE IS AVAILABLE FOR DAILY REWARD. DOWNLOAD IT AT http://skript.ktjx2.com/download/DailyReward.sk" to console
- stop
- on player join:
- player has permission "dailyreward.updater":
- set {_ver} to text from url "http://skript.ktjx2.com/ucheck/DailyReward.txt"
- if {_ver} is "{@version}":
- stop
- else:
- 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