Skip to content
Permalink
Browse files

Set locale field to be accessible - GH-234

  • Loading branch information...
chickeneer committed Aug 14, 2019
1 parent ec4816f commit 586afc6193e48b77ee7a8bd2da565cd4386196b8
Showing with 1 addition and 0 deletions.
  1. +1 −0 bukkit/src/main/java/co/aikar/commands/BukkitCommandManager.java
@@ -311,6 +311,7 @@ void readPlayerLocale(Player player) {
Object nmsPlayer = entityField.get(player);
if (nmsPlayer != null) {
Field localeField = nmsPlayer.getClass().getDeclaredField("locale");
localeField.setAccessible(true);
Object localeString = localeField.get(nmsPlayer);
if (localeString instanceof String) {
String[] split = ACFPatterns.UNDERSCORE.split((String) localeString);

0 comments on commit 586afc6

Please sign in to comment.
You can’t perform that action at this time.