mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-28 05:35:44 +01:00
Metrics: added islands count line chart
This commit is contained in:
parent
6f0912e1d2
commit
30c20216fa
@ -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()));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user