Metrics: added islands count line chart

This commit is contained in:
Florian CUNY 2019-01-02 16:54:58 +01:00
parent 6f0912e1d2
commit 30c20216fa

View File

@ -25,6 +25,9 @@ class BStats {
// Simple Pie Charts
registerDefaultLanguageChart();
registerDatabaseTypeChart();
// Single Line charts
registerIslandsCountChart();
}
private void registerDefaultLanguageChart() {
@ -34,4 +37,8 @@ class BStats {
private void registerDatabaseTypeChart() {
metrics.addCustomChart(new Metrics.SimplePie("database_type", () -> plugin.getSettings().getDatabaseType().toString()));
}
private void registerIslandsCountChart() {
metrics.addCustomChart(new Metrics.SingleLineChart("islands", () -> plugin.getIslands().getIslandCount()));
}
}