added config option to metrics: auto-generate-category-files

This commit is contained in:
mfnalex 2019-05-03 02:38:49 +02:00
parent 5d9811f65a
commit 2f2bb35618

View File

@ -264,7 +264,6 @@ public class JeffChestSortPlugin extends JavaPlugin {
registerMetrics();
}
private void registerMetrics() {
@ -286,6 +285,8 @@ public class JeffChestSortPlugin extends JavaPlugin {
metrics.addCustomChart(
new Metrics.SimplePie("using_matching_config_version", () -> Boolean.toString(usingMatchingConfig)));
metrics.addCustomChart(new Metrics.SimplePie("sort_time", () -> getConfig().getString("sort-time")));
metrics.addCustomChart(new Metrics.SimplePie("auto_generate_category_files",
() -> Boolean.toString(getConfig().getBoolean("auto-generate-category-files"))));
}
// Saves default category files, when enabled in the config