A comprehensive Minecraft server statistics plugin that provides detailed analytics through a REST API.
- Player Statistics: Track online player counts, session times, and playtime data
- Historical Data: Store and retrieve player activity over configurable time periods
- Hourly Analytics: Detailed hourly player distribution tracking
- Top Players: Leaderboards based on playtime and activity
- TPS Monitoring: Server performance tracking (optional)
- REST API: Modern RESTful endpoints for external integrations
- Data Persistence: CSV-based data storage with automatic cleanup
- GET
/stats/summary- Overall server statistics including player counts and TPS
- GET
/stats/online?days=7- Historical online player data (max 14 days)
- GET
/stats/topplayers?limit=10- Most active players by playtime
- GET
/stats/hourly- Current day's hourly player distribution
- POST
/stats/test- Test endpoint for API functionality
The plugin is configured via config.yml:
collection:
intervalMinutes: 10 # Data collection frequency
dataRetentionDays: 14 # How long to keep historical data
features:
enableTpsTracking: true # Enable TPS monitoring
maxTopPlayersLimit: 100 # Max players in leaderboards
saveOnPlayerQuit: true # Immediate data saving- Ensure you have CatWalk plugin installed as a dependency
- Download the latest StatsCatwalk JAR file
- Place it in your server's
plugins/folder - Restart your server
- Configure the plugin in
plugins/StatsCatwalk/config.ymlif needed
Stats are stored in CSV format in the plugins/StatsCatwalk/stats/ directory:
online_history.csv- Historical online player countshourly_distribution.csv- Hourly player distribution dataplayer_playtimes.csv- Individual player playtime records
- CatWalk - Required for web server functionality
- Paper/Spigot 1.21.4+ - Minecraft server platform
curl http://your-server.com/stats/summarycurl http://your-server.com/stats/online?days=7curl http://your-server.com/stats/topplayers?limit=20This plugin uses:
- Modern Paper API
- Lombok for boilerplate reduction
- OpenAPI documentation
- Bridge pattern for API endpoints
This plugin is part of the UA Project ecosystem.
For support and issues, visit: https://uaproject.xyz