From 565316da82d6ae9e6eb3005077a27187040ea0bd Mon Sep 17 00:00:00 2001 From: Jaime Martinez Rincon Date: Wed, 1 Feb 2017 19:25:01 +0100 Subject: [PATCH] Added custom chart of sections --- .../java/me/jaimemartz/lobbybalancer/LobbyBalancer.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/jaimemartz/lobbybalancer/LobbyBalancer.java b/src/main/java/me/jaimemartz/lobbybalancer/LobbyBalancer.java index 168f909..ee9da85 100644 --- a/src/main/java/me/jaimemartz/lobbybalancer/LobbyBalancer.java +++ b/src/main/java/me/jaimemartz/lobbybalancer/LobbyBalancer.java @@ -55,7 +55,13 @@ public class LobbyBalancer extends Plugin { if (ConfigEntries.SUBMIT_STATS.get()) { //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()); + } + }); } }