Remove using_templates metric

This commit is contained in:
fullwall 2024-03-03 01:39:21 +08:00
parent 92066dde7b
commit 0491f5ed20

View File

@ -540,13 +540,8 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
private void startMetrics() {
try {
Metrics metrics = new Metrics(this, 2463);
metrics.addCustomChart(new Metrics.SingleLineChart("total_npcs", () -> {
if (npcRegistry == null)
return 0;
return Iterables.size(npcRegistry);
}));
metrics.addCustomChart(new Metrics.SingleLineChart("using_templates",
() -> Math.min(1, Iterables.size(Template.getTemplates()))));
metrics.addCustomChart(new Metrics.SingleLineChart("total_npcs",
() -> npcRegistry == null ? 0 : Iterables.size(npcRegistry)));
metrics.addCustomChart(new Metrics.SimplePie("locale", () -> Locale.getDefault().getLanguage()));
metrics.addCustomChart(new Metrics.AdvancedPie("traits", () -> {
Map<String, Integer> res = Maps.newHashMap();
@ -564,6 +559,7 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
}
}
public void storeNPCs() {
storeNPCs(false);
}