mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-25 20:25:19 +01:00
Add using templates metric
This commit is contained in:
parent
07fb13c284
commit
15ee73f944
@ -544,6 +544,8 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
|
|||||||
return 0;
|
return 0;
|
||||||
return Iterables.size(npcRegistry);
|
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user