This project consists of a set of Python scripts that generate a (almost) static website displaying player statistics for a Minecraft server.
The scripts read data directly from the Minecraft server files, process it, and generate HTML, JSON, and image files. The generated website includes player statistics, activity graphs, and medals.
Install the required Python dependencies:
pip install -r requirements.txt- Create a
mcwebstat_config.ymlfile in the root directory of the project. - Add the following content to the file, replacing
d:/.minecraft_serverwith the actual path to your Minecraft server directory:
MINECRAFT_DIR: d:/.minecraft_serverThe following batch scripts are provided to update the statistics:
update_player_stat.bat: This script generates the main player statistics, converts markdown documentation to HTML, creates a site map, and generates player medals. It then copies the generated files to the web server root.update_player_activity.bat: This script generates player activity graphs and copies them to the web server root.
To run the scripts, simply execute the batch files from the command line.
Note: The batch scripts contain a hardcoded web server root directory (d:\_minecraft_site). You may need to edit these files to match your environment.