mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2025-01-08 09:27:39 +01:00
added config option to metrics: auto-generate-category-files
This commit is contained in:
parent
5d9811f65a
commit
2f2bb35618
@ -264,7 +264,6 @@ public class JeffChestSortPlugin extends JavaPlugin {
|
|||||||
|
|
||||||
registerMetrics();
|
registerMetrics();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void registerMetrics() {
|
private void registerMetrics() {
|
||||||
@ -286,6 +285,8 @@ public class JeffChestSortPlugin extends JavaPlugin {
|
|||||||
metrics.addCustomChart(
|
metrics.addCustomChart(
|
||||||
new Metrics.SimplePie("using_matching_config_version", () -> Boolean.toString(usingMatchingConfig)));
|
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("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
|
// Saves default category files, when enabled in the config
|
||||||
|
Loading…
Reference in New Issue
Block a user