
Play Time Tracker
Playtime Tracker is a Minecraft mod that monitors and records players' total playtime on a server. It calculates playtime for each session, saves the data in a JSON file, and allows players to check their playtime using the /playtrack command.
Tags
Creators
Details
2.0
Compatibility
Required content
Changes
Changelog
Version 2.0
- Feature Addition: Added the
/playtrackcommand to allow players to check their total playtime directly in-game. - Playtime Tracking: Playtime is now calculated in seconds and saved automatically in
playtime.jsonlocated in the root directory of the mod. - Data Persistence: Playtime data is dynamically saved and retrieved for all players, ensuring accurate tracking across sessions.
- Error Handling: Added error messages to inform players if their playtime data is not available.
Usage Instructions
Installation
- Download the mod
.jarfile. - Place the
.jarfile in themodsfolder of your Minecraft installation.
Commands
/playtrack:- Description: Displays the total playtime for the player who triggers the command.
- Usage: Simply type
/playtrackin the chat. - Error Handling: If no playtime data is found for the player, an error message will be displayed in the chat.
File Location
- Playtime data is stored in
playtime.jsonwithin the root directory of the mod. This file is automatically created and updated as players join and leave the server.
Customization
- The mod is designed to be simple and user-friendly. No additional configuration is required.
Compatibility
- This mod is compatible with Minecraft version 1.21 and requires Fabric Loader 0.15.11 or later.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:Y8wrTf7l:c29ZHEqz"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:Y8wrTf7l:c29ZHEqz"
}
