SpaceServe Playtime API
A simple and user-friendly library for tracking game time with extensive customization options. A solution for developers requiring precise gameplay time statistics.
Game Time Tracking
The library allows collecting detailed game time statistics:
- Total time in game
- Active time (with improved AFK detection system)
- Inactive time (AFK)
- Separate tracking for each dimension
Integration and Events
- Event system for player activity status changes
- All time statistics types as achievement triggers
- Support for scoreboard objectives
- Easy time conversion to convenient format
Project Integration
repositories {
maven {
name = "Modrinth"
url = uri("https://api.modrinth.com/maven")
}
}
dependencies {
// Playtime
modImplementation("maven.modrinth:playtime:0.1.0-rc1")
include("maven.modrinth:playtime:0.1.0-rc1")
}