Active playtime with AFK detection, milestone rewards, 7-day daily rewards, top list. SQLite or MySQL.
![]()
PlayRewards rewards players for the time they actually spend playing, and gives them a reason to come back every day.
For players
/playtime shows how long you've played. Time spent AFK doesn't count. When you hit a milestone, like your first hour or your tenth, the reward arrives right away. /daily opens a menu with a 7-day streak: claim once a day and the rewards get better the longer you keep it going. /playtime top shows the top 10, and players who are online are shown live.
For admins
It works out of the box with SQLite. If you prefer MySQL, it's a few lines in config.yml. Rewards are console commands with %player%, so they work with any economy, crates or rank plugin. Every option has a comment, every text and menu item is in messages.yml with MiniMessage colours, and /playrewards reload applies changes without a restart. If a player's data needs fixing, there's /playrewards set and reset.
Careful with your data
Every database query runs off the main thread, so a slow database never lags the server. Nothing is lost on a restart, and a crash costs at most 5 minutes of playtime (you can change that). If MySQL goes down, playtime is kept in memory and saved once it's back, with one warning in the console instead of a flood. A double click can never claim the same reward twice. Milestones are stored by name, so changing their time later never hands one out again.
Placeholders
With PlaceholderAPI you get %playrewards_playtime%, %playrewards_hours%, %playrewards_streak%, %playrewards_daily_available%, %playrewards_next_milestone%, %playrewards_top_<1-10>_name% and %playrewards_top_<1-10>_time%.
Requirements
Paper 26.3 with Java 25. PlaceholderAPI and MySQL are optional.
Permissions: playrewards.playtime, playrewards.top and playrewards.daily are for everyone, playrewards.playtime.others and playrewards.admin are for operators.
Several servers sharing one MySQL database should work, since the plugin was designed for it, but it hasn't been tested on a live network yet.
Not there yet
No repeating milestones, no import from other playtime plugins, no PostgreSQL, no Folia and no AFK kick. If you'd like one of these, open an issue on GitHub and let me know.
Source code and full documentation: GitHub.
Pinned Versions
- R26.3
Pages
Members
1Owner