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

View File

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

View File

@ -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") {
@Override
public String getValue() {