Description
A Play Time Tracker mod displays your online playtime and lets you set a time limit with a dynamic color-changing progress bar.
Features
- Real-time playtime display - Shows how long you've been online in
HH:MM:SSformat - Customizable time limits - Set a maximum playtime for yourself or other players
- Visual progress bar - Color-coded bar that changes based on remaining time:
- π’ Green (>50% remaining)
- π‘ Yellow (25-50% remaining)
- π΄ Red (<25% remaining)
- Auto-disconnect - Automatically disconnects players when their time limit is reached
- Admin controls - Operators can set time limits for other players
Installation
- Download the latest
PlaytimeTracker-1.0.0.jarfrom releases - Place the JAR file in your server's
mods/folder - Restart the server
Commands
/limitTime <minutes> (self)
/limitTime <minutes> [player] (op only)
Set a time limit for yourself or another player.
| Parameter | Type | Required | Description |
|---|---|---|---|
minutes |
Integer | β Yes | Time limit in minutes. Use 0 to remove the limit |
player |
Player | β No | Target player (operators only) |
Examples
/limitTime 60 # Set your own limit to 60 minutes
/limitTime 0 # Remove your time limit
/limitTime 30 Steve # Set Steve's limit to 30 minutes (admin only)
/limitTime 0 Steve # Remove Steve's limit (admin only)
Permissions
| Action | Permission Required |
|---|---|
| Set your own limit | None (everyone) |
| Set other player's limit | Operator (*) |
HUD Display
The HUD appears in the top-left corner of the screen and shows:
βββββββββββββββββββββββ
β Time Online: β
β 01:23:45 β
β ββββββββββββ (bar) β
β Remaining: 00:36:15 β
βββββββββββββββββββββββ
- Time Online - Your current session duration
- Progress Bar - Visual indicator (only visible when limit is set)
- Remaining - Time left before disconnect (only visible when limit is set)
Configuration
Currently, PlaytimeTracker does not require any configuration files. All settings are managed through in-game commands.
Technical Details
- Per-session tracking - Playtime resets when you disconnect
Changelog
v1.0.0
- Initial release
- Playtime HUD display
- Time limit command with progress bar
- Color-coded visual feedback
- Admin controls for setting other players' limits


