Remove using_templates metric
This commit is contained in:
parent
92066dde7b
commit
0491f5ed20
|
@ -540,13 +540,8 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
|
||||||
private void startMetrics() {
|
private void startMetrics() {
|
||||||
try {
|
try {
|
||||||
Metrics metrics = new Metrics(this, 2463);
|
Metrics metrics = new Metrics(this, 2463);
|
||||||
metrics.addCustomChart(new Metrics.SingleLineChart("total_npcs", () -> {
|
metrics.addCustomChart(new Metrics.SingleLineChart("total_npcs",
|
||||||
if (npcRegistry == null)
|
() -> npcRegistry == null ? 0 : Iterables.size(npcRegistry)));
|
||||||
return 0;
|
|
||||||
return Iterables.size(npcRegistry);
|
|
||||||
}));
|
|
||||||
metrics.addCustomChart(new Metrics.SingleLineChart("using_templates",
|
|
||||||
() -> Math.min(1, Iterables.size(Template.getTemplates()))));
|
|
||||||
metrics.addCustomChart(new Metrics.SimplePie("locale", () -> Locale.getDefault().getLanguage()));
|
metrics.addCustomChart(new Metrics.SimplePie("locale", () -> Locale.getDefault().getLanguage()));
|
||||||
metrics.addCustomChart(new Metrics.AdvancedPie("traits", () -> {
|
metrics.addCustomChart(new Metrics.AdvancedPie("traits", () -> {
|
||||||
Map<String, Integer> res = Maps.newHashMap();
|
Map<String, Integer> res = Maps.newHashMap();
|
||||||
|
@ -564,6 +559,7 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void storeNPCs() {
|
public void storeNPCs() {
|
||||||
storeNPCs(false);
|
storeNPCs(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue