diff --git a/pom.xml b/pom.xml index df8edda..76dc426 100644 --- a/pom.xml +++ b/pom.xml @@ -40,11 +40,6 @@ jarupdater 0.1.0 - - eu.m724 - jarupdater - 0.1.0 - org.bstats bstats-bukkit @@ -84,14 +79,14 @@ org.bstats - - eu.m724.realweather + eu.m724.realweather.bstats eu.m724:wtapi eu.m724:jarupdater + org.bstats:* diff --git a/src/main/java/eu/m724/realweather/RealWeatherPlugin.java b/src/main/java/eu/m724/realweather/RealWeatherPlugin.java index 9f84ba8..f21ab4d 100644 --- a/src/main/java/eu/m724/realweather/RealWeatherPlugin.java +++ b/src/main/java/eu/m724/realweather/RealWeatherPlugin.java @@ -7,6 +7,7 @@ import java.io.InputStreamReader; import java.util.logging.Logger; import org.bstats.bukkit.Metrics; +import org.bstats.charts.SimplePie; import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.plugin.java.JavaPlugin; @@ -140,7 +141,16 @@ public class RealWeatherPlugin extends JavaPlugin { if (GlobalConstants.weatherConfig.enabled) getCommand("localweather").setExecutor(new LocalWeatherCommand()); - new Metrics(this, 15020); + Metrics metrics = new Metrics(this, 15020); + metrics.addCustomChart(new SimplePie("weather_provider", () -> + GlobalConstants.weatherConfig.enabled ? GlobalConstants.weatherConfig.provider : "off" + )); + metrics.addCustomChart(new SimplePie("thunder_provider", () -> + GlobalConstants.thunderConfig.enabled ? GlobalConstants.thunderConfig.provider : "off" + )); + metrics.addCustomChart(new SimplePie("real_time", () -> + GlobalConstants.timeConfig.enabled ? "on" : "off" + )); DebugLogger.info("ended loading", 1); }