Record language rather than locale string

This commit is contained in:
fullwall 2023-11-01 23:58:49 +08:00
parent 24e7df6a18
commit 8e4b9ce60d
1 changed files with 1 additions and 1 deletions

View File

@ -557,7 +557,7 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
return 0;
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", () -> {
Map<String, Integer> res = Maps.newHashMap();
for (NPC npc : npcRegistry) {