mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-28 13:45:14 +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
|
// Simple Pie Charts
|
||||||
registerDefaultLanguageChart();
|
registerDefaultLanguageChart();
|
||||||
registerDatabaseTypeChart();
|
registerDatabaseTypeChart();
|
||||||
|
|
||||||
|
// Single Line charts
|
||||||
|
registerIslandsCountChart();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void registerDefaultLanguageChart() {
|
private void registerDefaultLanguageChart() {
|
||||||
@ -34,4 +37,8 @@ class BStats {
|
|||||||
private void registerDatabaseTypeChart() {
|
private void registerDatabaseTypeChart() {
|
||||||
metrics.addCustomChart(new Metrics.SimplePie("database_type", () -> plugin.getSettings().getDatabaseType().toString()));
|
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