A Minecraft Paper plugin that logs player experience gains to an InfluxDB (v2) database.
You must have Java installed.
- Download Paper from papermc.io.
- Place the downloaded
.jar
in a new directory. - Start the server once:
java -Xms4G -Xmx4G -jar <paper.jar> --nogui
This generates the /plugins
folder.
- In this repository's
/compose
, copy .env-example → .env. - Edit values as needed (DB name, org, etc.).
- From
/compose
, run InfluxDB:docker-compose up
- Open http://localhost:8086, log in, and generate an API token. Add it to your .env.
Edit ExpTracker.java
with your InfluxDB connection details:
collector = new ExpMetricsCollector(
"YOUR_URL_HERE",
"YOUR_TOKEN_HERE",
"YOUR_ORG_HERE",
"YOUR_BUCKET_HERE"
);
- Open the project in IntelliJ IDEA.
- In the Gradle tool window, run the
build
task. - The plugin
.jar
will appear in./build/libs
.
- Copy the generated plugin
.jar
into/plugins
. - Ensure InfluxDB is running.
- Start the server again:
java -Xms4G -Xmx4G -jar <paper.jar> --nogui