From 22c258b4fc6c97f57d7761b3cebd8d0efd23907b Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 20 Apr 2020 17:59:52 +1200 Subject: [PATCH] Change metrics to use existing chart --- .../disguise/utilities/metrics/MetricsInitalizer.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/metrics/MetricsInitalizer.java b/src/main/java/me/libraryaddict/disguise/utilities/metrics/MetricsInitalizer.java index 6e3663f3..a55e2681 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/metrics/MetricsInitalizer.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/metrics/MetricsInitalizer.java @@ -1,5 +1,6 @@ package me.libraryaddict.disguise.utilities.metrics; +import me.libraryaddict.disguise.DisguiseAPI; import me.libraryaddict.disguise.DisguiseConfig; import me.libraryaddict.disguise.LibsDisguises; import me.libraryaddict.disguise.disguisetypes.Disguise; @@ -63,6 +64,8 @@ public class MetricsInitalizer { } else { premiumType = "Paid Builds"; } + } else if (LibsPremium.isAPIPlugin()) { + premiumType = "Free Plugin"; } else { premiumType = "Free Builds"; } @@ -74,13 +77,6 @@ public class MetricsInitalizer { } }); - metrics.addCustomChart(new Metrics.SimplePie("ld_api") { - @Override - public String getValue() { - return "" + LibsPremium.isAPIPlugin(); - } - }); - metrics.addCustomChart(new Metrics.SimplePie("grabskin_command") { @Override public String getValue() {