Added database_type and default_language metrics

This commit is contained in:
Florian CUNY 2018-12-22 11:37:10 +01:00
parent d907506fda
commit 407e6bb510

View File

@ -17,6 +17,21 @@ class BStats {
void registerMetrics() {
if (metrics == null) {
metrics = new Metrics(plugin);
registerCustomMetrics();
}
}
private void registerCustomMetrics() {
// Simple Pie Charts
registerDefaultLanguageChart();
registerDatabaseTypeChart();
}
private void registerDefaultLanguageChart() {
metrics.addCustomChart(new Metrics.SimplePie("default_language", () -> plugin.getSettings().getDefaultLanguage()));
}
private void registerDatabaseTypeChart() {
metrics.addCustomChart(new Metrics.SimplePie("database_type", () -> plugin.getSettings().getDatabaseType().toString()));
}
}