mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-28 05:35:44 +01:00
Added database_type and default_language metrics
This commit is contained in:
parent
d907506fda
commit
407e6bb510
@ -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()));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user