Add metrics for api version

This commit is contained in:
libraryaddict 2020-04-17 19:57:52 +12:00
parent 39e5f32083
commit 5ac6731ec5
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4
2 changed files with 8 additions and 1 deletions

@ -5,7 +5,7 @@
<!-- A good example on why temporary names for project identification shouldn't be used --> <!-- A good example on why temporary names for project identification shouldn't be used -->
<groupId>LibsDisguises</groupId> <groupId>LibsDisguises</groupId>
<artifactId>LibsDisguises</artifactId> <artifactId>LibsDisguises</artifactId>
<version>10.0.4</version> <version>10.0.4-SNAPSHOT</version>
<build> <build>
<defaultGoal>exec:java clean install</defaultGoal> <defaultGoal>exec:java clean install</defaultGoal>

@ -74,6 +74,13 @@ 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() {