Why wasn't this done already

This commit is contained in:
libraryaddict 2024-03-05 20:20:02 +13:00
parent 0288134b4d
commit 8e6b4ce466

View File

@ -50,7 +50,8 @@ public class MetricsInitalizer {
info = LibsPremium.getPluginInformation();
}
boolean customPremium = !info.getUserID().matches("[0-9]+") || info.getUserID().equals("1") || !info.getResourceID().equals("32453") ||
boolean customPremium =
!info.getUserID().matches("[0-9]+") || info.getUserID().equals("1") || !info.getResourceID().equals("32453") ||
!info.getDownloadID().matches("-?[0-9]+");
if (customPremium) {
@ -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") {