HTM-DailyRewards - Daily Rewards for Players
HTM-DailyRewards is a plugin that allows players to claim daily rewards in the form of random items, points, and money. With an advanced cooldown system, rewards can only be claimed once within a set time, encouraging players to log in and stay active on the server.
Features:
- Daily Rewards: Players can claim rewards every day, which can include items, PlayerPoints, and money (using Vault).
- Random Reward Selection: The reward is randomly chosen from a predefined list of rewards. Various types of rewards can be set, such as commands, points, or balance increases.
- Cooldown System: The cooldown system ensures players can only claim rewards once within a specified time (e.g., once per hour), preventing abuse.
- Simple GUI: Players are presented with an easy-to-use graphical interface (GUI) to claim their daily rewards.
- Admin Command: Admins can reset player cooldowns using the /areward reset <player> command.
Commands:
- /daily – Claim your daily reward (requires active cooldown).
- /areward reset <player> – Reset a player's cooldown (requires the htm.daily.reset permission).
Requirements:
- Vault: For integration with the server economy system.
- PlayerPoints: For managing player points (if installed).
Installation:
- Download the plugin.
- Place the .jar file in your server's plugins folder.
- Restart the server.
- Configure the config.yml file according to your needs (set rewards, cooldowns, GUI).
- Enjoy daily rewards on your server!
Support and Contact:
If you have any questions or need assistance, join our Discord server!
Discord:
https://discord.gg/2z9bBqxaN5
See the Plugin in Action:
Code (Text):
gui:
title: "&d&lDaily Rewards" # Gui name
filler-material: "PINK_STAINED_GLASS_PANE" # Gui FIller
size: 27 # Gui size
claim:
cooldown: 24 # Time in hours
button:
item: DIAMOND # Claim button
name: "&dClaim Reward"
lore:
- ""
- "&dClick do claimy your daily reward!"
- "&dThe daily reward is given out randomly!"
- "&dWhat does this mean?"
- "&dThe plugin has a pool of rewards, and every day"
- "&dYou can win a random reward!"
Rewards:
1:
command:
points: 10
price: 500.0
message: "&x&F&B&0&8&6&BH&x&F&6&1&8&7&5T&x&F&1&2&7&7&EM&x&E&B&3&7&8&8-&x&E&6&4&7&9&2D&x&E&1&5&6&9&Ca&x&D&C&6&6&A&5i&x&D&7&7&6&A&Fl&x&D&1&8&5&B&9y&x&C&C&9&5&C&3R&x&C&7&A&5&C&Ce&x&C&2&B&4&D&6w&x&B&D&C&4&E&0a&x&B&7&D&4&E&Ar&x&B&2&E&3&F&3d&x&A&D&F&3&F&Ds &dYou recived a reward in the form of: 10 PlayerPoints, $500"
2:
command: "give %player% diamond 64"
points: 0
price: 5.0
message: "&x&F&B&0&8&6&BH&x&F&6&1&8&7&5T&x&F&1&2&7&7&EM&x&E&B&3&7&8&8-&x&E&6&4&7&9&2D&x&E&1&5&6&9&Ca&x&D&C&6&6&A&5i&x&D&7&7&6&A&Fl&x&D&1&8&5&B&9y&x&C&C&9&5&C&3R&x&C&7&A&5&C&Ce&x&C&2&B&4&D&6w&x&B&D&C&4&E&0a&x&B&7&D&4&E&Ar&x&B&2&E&3&F&3d&x&A&D&F&3&F&Ds &dYou recived a reward in the form of: $5, 64 Diamond"
3:
command:
points: 10
price: 0
message: "&x&F&B&0&8&6&BH&x&F&6&1&8&7&5T&x&F&1&2&7&7&EM&x&E&B&3&7&8&8-&x&E&6&4&7&9&2D&x&E&1&5&6&9&Ca&x&D&C&6&6&A&5i&x&D&7&7&6&A&Fl&x&D&1&8&5&B&9y&x&C&C&9&5&C&3R&x&C&7&A&5&C&Ce&x&C&2&B&4&D&6w&x&B&D&C&4&E&0a&x&B&7&D&4&E&Ar&x&B&2&E&3&F&3d&x&A&D&F&3&F&Ds &dYou recived a reward in the form of: 10 PlayerPoints"
4:
command: "give %player% diamond 64"
points: 10
price: 500.0
message: "&x&F&B&0&8&6&BH&x&F&6&1&8&7&5T&x&F&1&2&7&7&EM&x&E&B&3&7&8&8-&x&E&6&4&7&9&2D&x&E&1&5&6&9&Ca&x&D&C&6&6&A&5i&x&D&7&7&6&A&Fl&x&D&1&8&5&B&9y&x&C&C&9&5&C&3R&x&C&7&A&5&C&Ce&x&C&2&B&4&D&6w&x&B&D&C&4&E&0a&x&B&7&D&4&E&Ar&x&B&2&E&3&F&3d&x&A&D&F&3&F&Ds &dYou recived a reward in the form of: 10 PlayerPoints, 64 Diamonds, $500"
lang:
cooldown: "&x&F&B&0&8&6&BH&x&F&6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