Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- time : 24 hours
- command /rewards:
- trigger:
- open chest with 3 rows named "Daily Rewards" to player
- wait 0.6 ticks
- difference between {dailyreward.%player%.time} and now is less than {@time}:
- 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
- else:
- 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"]
- command /claim:
- trigger:
- difference between {dailyreward.%player%.time} and now is less than {@time}:
- message "&c&lHey! &7You reward is not claimable at this moment."
- stop
- else:
- execute console command "/xp give %player% 25"
- message "&3 + 25 Player XP"
- add 15 to player's balance
- message "&a + $15"
- give 16 coal to player
- message "&b + 16 coal"
- set {dailyreward.%player%.time} to now
- if inventory name of player's current inventory is "Daily Rewards":
- wait 0.6 ticks
- 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