Start monitoring who removes the default disguise

This commit is contained in:
libraryaddict 2020-06-20 22:39:22 +12:00
parent 4fa20a0367
commit ea3380754b
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -1,5 +1,6 @@
package me.libraryaddict.disguise.utilities.metrics; package me.libraryaddict.disguise.utilities.metrics;
import me.libraryaddict.disguise.DisguiseAPI;
import me.libraryaddict.disguise.DisguiseConfig; import me.libraryaddict.disguise.DisguiseConfig;
import me.libraryaddict.disguise.LibsDisguises; import me.libraryaddict.disguise.LibsDisguises;
import me.libraryaddict.disguise.disguisetypes.Disguise; import me.libraryaddict.disguise.disguisetypes.Disguise;
@ -88,6 +89,13 @@ public class MetricsInitalizer {
} }
}); });
metrics.addCustomChart(new Metrics.SimplePie("default_libraryaddict") {
@Override
public String getValue() {
return (DisguiseAPI.getRawCustomDisguise("libraryaddict") != null) + "";
}
});
metrics.addCustomChart(new Metrics.SimplePie("save_disguise_command") { metrics.addCustomChart(new Metrics.SimplePie("save_disguise_command") {
@Override @Override
public String getValue() { public String getValue() {