Change metrics to use existing chart

This commit is contained in:
libraryaddict 2020-04-20 17:59:52 +12:00
parent ee9240385e
commit 22c258b4fc
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -1,5 +1,6 @@
package me.libraryaddict.disguise.utilities.metrics; package me.libraryaddict.disguise.utilities.metrics;
import me.libraryaddict.disguise.DisguiseAPI;
import me.libraryaddict.disguise.DisguiseConfig; import me.libraryaddict.disguise.DisguiseConfig;
import me.libraryaddict.disguise.LibsDisguises; import me.libraryaddict.disguise.LibsDisguises;
import me.libraryaddict.disguise.disguisetypes.Disguise; import me.libraryaddict.disguise.disguisetypes.Disguise;
@ -63,6 +64,8 @@ public class MetricsInitalizer {
} else { } else {
premiumType = "Paid Builds"; premiumType = "Paid Builds";
} }
} else if (LibsPremium.isAPIPlugin()) {
premiumType = "Free Plugin";
} else { } else {
premiumType = "Free Builds"; 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") { metrics.addCustomChart(new Metrics.SimplePie("grabskin_command") {
@Override @Override
public String getValue() { public String getValue() {