mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-25 03:55:30 +01:00
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() {
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user