From 8e6b4ce46610485e371402d3121af5db925ea202 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Tue, 5 Mar 2024 20:20:02 +1300 Subject: [PATCH] Why wasn't this done already --- .../utilities/metrics/MetricsInitalizer.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/plugin/src/main/java/me/libraryaddict/disguise/utilities/metrics/MetricsInitalizer.java b/plugin/src/main/java/me/libraryaddict/disguise/utilities/metrics/MetricsInitalizer.java index 79416713..3a7ef189 100644 --- a/plugin/src/main/java/me/libraryaddict/disguise/utilities/metrics/MetricsInitalizer.java +++ b/plugin/src/main/java/me/libraryaddict/disguise/utilities/metrics/MetricsInitalizer.java @@ -50,8 +50,9 @@ public class MetricsInitalizer { info = LibsPremium.getPluginInformation(); } - boolean customPremium = !info.getUserID().matches("[0-9]+") || info.getUserID().equals("1") || !info.getResourceID().equals("32453") || - !info.getDownloadID().matches("-?[0-9]+"); + boolean customPremium = + !info.getUserID().matches("[0-9]+") || info.getUserID().equals("1") || !info.getResourceID().equals("32453") || + !info.getDownloadID().matches("-?[0-9]+"); if (customPremium) { if (plugin.isReleaseBuild() && LibsPremium.getPaidInformation() == null) { @@ -244,6 +245,13 @@ public class MetricsInitalizer { } }); + metrics.addCustomChart(new Metrics.SimplePie("bisect_hosting") { + @Override + public String getValue() { + return LibsPremium.isBisectHosted() ? "Yes" : "No"; + } + }); + final boolean updates = DisguiseConfig.isNotifyUpdate(); metrics.addCustomChart(new Metrics.SimplePie("updates") {