Home›Java›Mods›DailyRewards - Calendar GUI & Streaks
ModsJava

DailyRewards - Calendar GUI & Streaks

Java mod listed for Minecraft 1.21–26.x. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
Questions, bugs or ideas? Join our Discord: discord.gg/VeNKPKnNVD​

DailyRewards
A real monthly calendar of daily rewards: streaks with a grace period, milestone days, playtime and vote rewards, weighted loot tables and two menu themes.
Free, with nothing held back. No required dependency. One jar for Paper 1.21.x and 26.x.
​

Daily rewards are not a rare idea, and this page is not going to pretend otherwise. What is rare is the part your players actually touch: a calendar they can read. Most plugins give you a row of nine chests labelled "Day 1" to "Day 9" and a lore line that says Mystery Reward. DailyRewards opens on the week you are in - seven days on one row, with the streak bar under them and the buttons under that - with today glinting, the days you claimed and the days you missed in different materials, the milestone days styled apart, and the real contents of every single day written in its lore.

Drop the jar in, start the server, type /daily. The plugin writes a calendar with eight days already filled in, four streak milestones, three loot tables, four playtime tiers, vote rewards and two complete menu themes, so the calendar is worth opening before you have edited a single line of YAML.

Highlights

The menu, because the menu is the product
A player opens this menu dozens of times a month. It is the one part of a daily-rewards plugin that is worth building properly, so here is the layout:
Code (Text):
  .  .  .  .  .  .  .  .  .    row 0   the frame
  . 10 11 12 13 14 15 16  .    row 1   THIS WEEK, Monday to Sunday
  . 19 20 21 22 23 24 25  .    row 2   the streak bar, one segment per day
  . 28 29 30 31 32 33 34  .    row 3   streak, playtime, top, CLAIM, month, vote, help

and one click away, the second window - the whole month:
   0 | 1  2  3  4  5  6  7 |  8
   9 |10 11 12 13 14 15 16 | 17
  18 |19 20 21 22 23 24 25 | 26
  27 |28 29 30 31 32 33 34 | 35
  36 |37 38 39 40 41 42 43 | 44
  45 |46 47 48 49 50 51 52 | 53

The two themes
/daily theme <name> opens the calendar in another theme so you can look at both before you choose one.

A claim happens exactly once
This is what a rewards plugin is judged on, so it is worth saying how it works instead of promising that it does.
There is no check-then-act anywhere in that path, and therefore no window between the check and the act. A double click, two packets from a lagging client, the command and the menu button pressed in the same tick, two threads, or two servers sharing one MySQL database all arrive at one INSERT and the database picks the winner. The probe proves it with eight threads racing the same day inside a live server; the bot test proves it with a real client clicking twice.

The day boundary, and daylight saving
A day starts at day.reset-hour: day.reset-minute in day.timezone. The rule is the wall clock - the local date, minus a day if the local time is before the reset - which is total and needs no special case in either DST direction.

Going the other way, from a day number back to the instant it began, does need one and has it: with a reset at 02:30 and the clock jumping 02:00 to 03:00 there is no local 02:30, so the day begins at the moment the clock jumps; and when 02:00-03:00 happens twice, the day begins the first time the clock reads 02:30. Both are unit tested over real DST dates in America/New_York, Europe/Bucharest and Pacific/Chatham, and the probe walks a full year of days on the server it is running on.

Configurable, and actually functional
A reward can be written as one string or as a block, in any of the files:
Code (Text):
rewards:
  - "money 500"
  - "item DIAMOND 3"
  - "xp 100"
  - "loot rare 2"
  - type: item
    material: DIAMOND_SWORD
    name: "<gradient:#ffd34d:#ff8a00>Thirty Days</gradient>"
    lore: ["<gray>For showing up every day."]
    enchants: ["sharpness:3", "unbreaking:3"]
  - type: command
    command: "crate give %player% vote 1"
    as: console
    description: "A Vote Crate key"   # what the MENU shows; without it players read the raw command
  - type: item
    material: GOLDEN_APPLE
    amount: 1
    amount-max: 3      # a range
    chance: 25         # percent
    permission: "myserver.lucky"
Good to know (the honest limits)
Everything else on this page is exactly what the plugin does.

Spoiler: Commands - /daily, aliases /dailyrewards, /dr and /rewards
/daily - opens the calendar
/daily claim - claims today without the menu
/daily streak - your streak, the next milestone, and when it breaks
/daily playtime - the playtime tiers and how far off the next one is
/daily vote - votes counted, what a vote gives, and the vote party
/daily top - the longest streaks
/daily preview [day] - what a day of the month gives
/daily loot
- a loot table and its real odds
/daily help [page] - paginated help; page 2 is the operator page

Operator:
/daily reload - reads every file again, with players online
/daily problems - everything wrong with your files: the file, the key, what is wrong, what to do
/daily stats - what is loaded, what is connected, which day rules are in force
/daily theme [name] - opens the calendar in another theme; does NOT change the config
/daily give <player> [day] - hands over a day's rewards without touching the streak or the claim history; this is for a compensation, not a second claim
/daily set <player> <streak> - sets a streak
/daily reset <player> - wipes a player: streak, claims, playtime, votes
/daily info <player> - everything stored about one player

Tab completion is filtered by permission, so an ordinary player is never offered /daily reset.

Everything above is also a button in the menu, so the commands are a shortcut and never the only way in.
Spoiler: Permissions
dailyrewards.use - open the calendar (default: everyone)
dailyrewards.claim - claim the daily reward (default: everyone)
dailyrewards.playtime - earn the playtime rewards (default: everyone)
dailyrewards.vote - earn the vote rewards (default: everyone)
dailyrewards.top - see the leaderboard (default: everyone)
dailyrewards.admin - reload, problems, stats, theme, give, set, reset, info (default: op)
dailyrewards.bypass.alt - ignore the anti-alt limit (default: nobody)
dailyrewards.bypass.world - claim in a world where claiming is switched off (default: nobody)
dailyrewards.rank.vip - the VIP rewards in the shipped calendar (default: nobody)
dailyrewards.rank.mvp - the MVP rewards in the shipped calendar (default: nobody)

Every node is registered with an explicit default. Bukkit grants an operator any permission that has not been registered, so leaving one out would silently let every op bypass the anti-alt limit without anybody choosing that.
Spoiler: Placeholders (PlaceholderAPI)
Every value the menu uses is also a placeholder, because the expansion is a thin wrapper around the same list - the two can never disagree.

%dailyrewards_streak% %dailyrewards_best% %dailyrewards_total%
%dailyrewards_goal% %dailyrewards_progress%
%dailyrewards_grace_used% %dailyrewards_grace_left%
%dailyrewards_month% %dailyrewards_month_number% %dailyrewards_year% %dailyrewards_month_days%
%dailyrewards_reset% %dailyrewards_reset_clock% %dailyrewards_streak_left%
%dailyrewards_playtime% %dailyrewards_playtime_minutes%
%dailyrewards_next_tier% %dailyrewards_next_tier_minutes%
%dailyrewards_votes% %dailyrewards_votes_today%
%dailyrewards_party% %dailyrewards_party_goal%
%dailyrewards_theme%

For an offline player only streak, best, total and playtime_minutes answer. The rest need a session or a permission check and would otherwise be a guess dressed up as a fact.
Requirements and installation
  1. Drop the jar into /plugins and start the server.
  2. Type /daily.
That is the whole installation. The first operator to log in gets five lines saying where the files are and what to type next.

Tested 163 unit tests over the day clock across real DST dates in four timezones, the streak and its grace period, loot weights and seed correlation, playtime accounting, the anti-alt rule, the 42-cell grid, the streak bar, theme loading and the shipped files parsed with the real loaders - including a sixteen-thread race on a real SQLite file. Then an in-server probe of 1209 checks , green on Paper 1.21.1, 1.21.11 and 26.2 , and 1143 more after a real restart - which is how the idempotent claim, the playtime counter and the pending votes are tested rather than asserted. Then 82 checks from a real mineflayer client : the calendar opens, today is where the layout says it is, clicking it claims, the item arrives, clicking again gives nothing, and the title above the grid matches the month drawn in it. And 13 build sanity checks that fail the build if a shipped file is missing from the jar, if a version-specific enum constant slipped into the code, if a YAML key turned into an accidental boolean, or if a message key the code asks for does not exist.

Developer API
Code (Text):
DailyRewardsService api = DailyRewardsAPI.get();   // or the Bukkit services manager
PlayerDailyView view = api.view(player);
int streak = view.streak();
ClaimOutcome outcome = api.claim(player);
Three events: DailyClaimEvent (cancellable, and it fires before the day is written, so a veto leaves the day available), StreakChangeEvent ( STARTED / CONTINUED / SAVED_BY_GRACE / BROKEN / ADMIN ) and PlaytimeRewardEvent (cancellable). A crate or quest plugin needs no code at all: put /daily give %player% in its reward list.

Support
Found a bug or have an idea? Join our Discord: discord.gg/VeNKPKnNVD
If DailyRewards is useful to you, please leave a review - it is the fastest way to help the plugin, and every bug reported on Discord gets fixed.

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

DailyRewards - Calendar GUI & Streaks is a free Minecraft Java mod. Compatible with Minecraft 1.21, 26.1, 26.2, 26.3. Downloaded 2 times (via Spigot). Download it and open it directly in the game.

Explore more