diff --git a/CHANGELOG.md b/CHANGELOG.md index c86311afd..a0596b98f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ Unless otherwise specified, any version comparison below is the comparison of se - Implemented most of the crops, including wheat, potato, carrot, beetroot, melon and pumpkin. - Introduced [sentry](https://www.sentry.io) to capture exception and upload them to sentry server automatically, which helps us to track and fix bug more efficiently. Sentry is only enabled in non-dev version. +- Server version will also be uploaded to bStats now. ### Changed diff --git a/server/src/main/java/org/allaymc/server/metrics/Metrics.java b/server/src/main/java/org/allaymc/server/metrics/Metrics.java index 1cd926ea4..575922be8 100644 --- a/server/src/main/java/org/allaymc/server/metrics/Metrics.java +++ b/server/src/main/java/org/allaymc/server/metrics/Metrics.java @@ -588,6 +588,7 @@ public static void startMetrics() { metrics.addCustomChart(new Metrics.SingleLineChart("players", server::getOnlinePlayerCount)); metrics.addCustomChart(new Metrics.SimplePie("minecraft_version", ProtocolInfo::getMinecraftVersionStr)); metrics.addCustomChart(new Metrics.SimplePie("allay_api_version", GitProperties::getBuildApiVersion)); + metrics.addCustomChart(new Metrics.SimplePie("allay_server_version", GitProperties::getBuildVersion)); metrics.addCustomChart(new Metrics.SimplePie("max_memory", () -> String.format("%.2f", Runtime.getRuntime().maxMemory() / (1024d * 1024d * 1024d)) + "G")); metrics.addCustomChart(new Metrics.SimplePie("xbox_auth", () -> Server.SETTINGS.networkSettings().xboxAuth() ? "Required" : "Not required"));