From d46adfd957cfedd4b5824f350aac9fa37a8aed96 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Sun, 21 Feb 2021 02:15:10 +0100 Subject: [PATCH] Fix custom charts Probably --- .../minecraft/limitedcreative/FeatureMetrics.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/jaschastarke/minecraft/limitedcreative/FeatureMetrics.java b/src/main/java/de/jaschastarke/minecraft/limitedcreative/FeatureMetrics.java index 5b987e7..8518f09 100644 --- a/src/main/java/de/jaschastarke/minecraft/limitedcreative/FeatureMetrics.java +++ b/src/main/java/de/jaschastarke/minecraft/limitedcreative/FeatureMetrics.java @@ -5,7 +5,7 @@ import de.jaschastarke.modularize.IModule; import de.jaschastarke.modularize.ModuleEntry; import de.jaschastarke.modularize.ModuleEntry.ModuleState; import org.bstats.bukkit.Metrics; -import org.bstats.charts.MultiLineChart; +import org.bstats.charts.AdvancedPie; import org.bukkit.event.Listener; import java.util.HashMap; @@ -23,14 +23,14 @@ public class FeatureMetrics extends CoreModule implements Liste if (bstats == null) { bstats = new Metrics(plugin, 10413); - bstats.addCustomChart(new MultiLineChart("Module Usage", () -> { + bstats.addCustomChart(new AdvancedPie("module_usage", () -> { HashMap ret = new HashMap<>(); for (final ModuleEntry mod : plugin.getModules()) if (mod.getModule() instanceof CoreModule) ret.put(((CoreModule) mod.getModule()).getName(), mod.getState() == ModuleState.ENABLED ? 1 : 0); return ret; })); - bstats.addCustomChart(new MultiLineChart("Dependencies", () -> { + bstats.addCustomChart(new AdvancedPie("dependencies", () -> { HashMap ret = new HashMap<>(); for (final String dep : plugin.getDescription().getSoftDepend()) ret.put(dep, plugin.getServer().getPluginManager().isPluginEnabled(dep) ? 1 : 0);