- Feature Addition: Added the
/playtrack
command to allow players to check their total playtime directly in-game. - Playtime Tracking: Playtime is now calculated in seconds and saved automatically in
playtime.json
located 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.
- Download the mod
.jar
file. - Place the
.jar
file in themods
folder of your Minecraft installation.
/playtrack
:- Description: Displays the total playtime for the player who triggers the command.
- Usage: Simply type
/playtrack
in the chat. - Error Handling: If no playtime data is found for the player, an error message will be displayed in the chat.
- Playtime data is stored in
playtime.json
within the root directory of the mod. This file is automatically created and updated as players join and leave the server.
- The mod is designed to be simple and user-friendly. No additional configuration is required.
- This mod is compatible with Minecraft version 1.21 and requires Fabric Loader 0.15.11 or later.