Record language rather than locale string
This commit is contained in:
parent
24e7df6a18
commit
8e4b9ce60d
|
@ -557,7 +557,7 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
|
||||||
return 0;
|
return 0;
|
||||||
return Iterables.size(npcRegistry);
|
return Iterables.size(npcRegistry);
|
||||||
}));
|
}));
|
||||||
metrics.addCustomChart(new Metrics.SimplePie("locale", () -> Locale.getDefault().toString()));
|
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();
|
||||||
for (NPC npc : npcRegistry) {
|
for (NPC npc : npcRegistry) {
|
||||||
|
|
Loading…
Reference in New Issue