Daily Rewards 1.1-SNAPSHOT
release12 марта 2025 г.New Features:
- Auto Claim on Join: Players can now automatically receive their daily rewards upon joining the server. This feature can be enabled or disabled via the autoClaimOnJoin setting in the config.yml.
- Premium Rewards: Implemented support for premium rewards. Players with the dailyrewards.premium permission will receive additional premium rewards automatically if the auto claim feature is enabled.
- Custom Messages: Added customizable messages for both standard and premium rewards when automatically claimed. These can be configured using autoClaimMessage and autoClaimPremiumMessage in the config.yml.
Improvements:
- Database Management:
- The SQLite database is now created in the plugin's data folder, ensuring better organization and accessibility.
- Improved error handling and logging for database operations, including connection and query execution.
- Added a method to close the database connection when the plugin is disabled, ensuring resources are properly released.
Bug Fixes:
- Fixed issues with cooldown messages not displaying correctly.
- Resolved potential conflicts with reward claiming logic to ensure players only receive rewards once per day.
Configuration Changes:
- Updated config.yml to include new settings for auto claim messages and improved cooldown message formatting.
General:
- Enhanced logging to provide better insights into plugin operations and player interactions. Please ensure to update your config.yml with the new settings to take full advantage of these features. As always, backup your existing configuration and database before updating.
Daily Rewards 1.0-SNAPSHOT
release15 января 2025 г.About the Plugin
- Daily Rewards: Setup 2 Daily Rewards in a GUI operated System.
- Preview Rewards: You can preview the Rewards within the Item Lore.
- Daily Rewards Villager: Setup a Daily Rewards Villager with /setvillager
- Cooldown: Wait 24 hours before claiming your next rewards.
- Customisable Items: Each Item customisable to your likings.
- Customisable Messages: Each Message customisable to your likings.
- Easy Config: Well structured and simple config.
Commands and Permissions
- /setvillager - Sets the Daily Rewards Villager
- /dailyrewards - Opens the Daily Rewards Villager
- dailyrewards.setup - Permission to set the villager
- dailyrewards.premium - Permission to claim the premium reward
config.yml
Prefix: "&8[&6Rewards&8]&7 "
villagerName: "&6&lDaily Rewards &7(Right Click)" villagerMenuTitle: "&6Daily Rewards" setVillagerCommand: "&aSuccessfully &7set the &eDaily Rewards &7villager." villagerMenuFillerItem: BLACK_STAINED_GLASS_PANE #Default - BLACK_STAINED_GLASS_PANE cooldownMessage: "&cYou've already claimed the Default Daily Reward. Come back in &b%hours%h&c, &b%minutes%min &cand &b%seconds%secs&c."
#DEFAULT PLAYER REWARDS dailyRewardAvailable: material: GLOWSTONE_DUST displayName: "&eDaily Rewards" lore: - "&7" - "&7Reward Contains:" - " &8» &a&l+ &f25 Coins" - "&7" - "&8➥ &bLeftclick to claim" command: "give %playername% minecraft:diamond 16" #Command that is being executed when the player claims the reward. claimMessage: "You &asuccessfully &7claimed the &eDefault Daily Reward&7."
#PREMIUM PLAYER REWARDS premiumRewardAvailable: material: GLOWSTONE_DUST displayName: "&ePremium Daily Rewards" lore: #You can add and remove as many lines of the item lore as you want to. - "&7" - "&7Reward Contains:" - " &8» &a&l+ &f32 Diamonds" - "&7" - "&8➥ &bLeftclick to claim" command: "give %playername% minecraft:diamond 32" #Command that is being executed when the player claims the reward. claimMessage: "You &asuccessfully &7claimed the &ePremium Daily Reward&7." premiumOnly: "&cOnly a premium player or higher can claim this reward! - Visit our shop and buy a rank: &bshop.yourserver.com"
Support & Suggestions
Join my Discord if you have any questions or suggestions regarding the plugin - https://discord.gg/dj4DkrUVkX

