From 754538a490c8f7a278726c4536a53882a49d1406 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 23 Nov 2018 13:29:19 +1300 Subject: [PATCH] Add metrics for config option 'Disable commands' --- .../java/me/libraryaddict/disguise/LibsDisguises.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/me/libraryaddict/disguise/LibsDisguises.java b/src/main/java/me/libraryaddict/disguise/LibsDisguises.java index a418fae0..cf496d7b 100644 --- a/src/main/java/me/libraryaddict/disguise/LibsDisguises.java +++ b/src/main/java/me/libraryaddict/disguise/LibsDisguises.java @@ -209,6 +209,14 @@ public class LibsDisguises extends JavaPlugin { } }); + + metrics.addCustomChart(new Metrics.SimplePie("commands") { + @Override + public String getValue() { + return DisguiseConfig.isDisableCommands() ? "Enabled" : "Disabled"; + } + }); + metrics.addCustomChart(new Metrics.SimplePie("spigot") { @Override public String getValue() {