mirror of
https://github.com/BGHDDevelopment/PlayerBalancer.git
synced 2024-11-09 04:20:32 +01:00
Added custom chart of sections
This commit is contained in:
parent
d01064256d
commit
565316da82
@ -55,7 +55,13 @@ public class LobbyBalancer extends Plugin {
|
|||||||
|
|
||||||
if (ConfigEntries.SUBMIT_STATS.get()) {
|
if (ConfigEntries.SUBMIT_STATS.get()) {
|
||||||
//Metrics (https://bstats.org/)
|
//Metrics (https://bstats.org/)
|
||||||
new Metrics(this);
|
Metrics metrics = new Metrics(this);
|
||||||
|
metrics.addCustomChart(new Metrics.SimplePie("configured_sections") {
|
||||||
|
@Override
|
||||||
|
public String getValue() {
|
||||||
|
return String.valueOf(sectionManager.getSections().size());
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user