mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-12 15:07:22 +01:00
Why wasn't this done already
This commit is contained in:
parent
0288134b4d
commit
8e6b4ce466
@ -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") {
|
||||
|
Loading…
Reference in New Issue
Block a user