diff --git a/bukkit/src/main/java/me/lucko/luckperms/bukkit/util/PlayerLocaleUtil.java b/bukkit/src/main/java/me/lucko/luckperms/bukkit/util/PlayerLocaleUtil.java index 19f7af933..0c169b311 100644 --- a/bukkit/src/main/java/me/lucko/luckperms/bukkit/util/PlayerLocaleUtil.java +++ b/bukkit/src/main/java/me/lucko/luckperms/bukkit/util/PlayerLocaleUtil.java @@ -47,7 +47,7 @@ public final class PlayerLocaleUtil { Method legacyMethod = Player.Spigot.class.getMethod("getLocale"); function = player -> { try { - return (String) legacyMethod.invoke(player); + return (String) legacyMethod.invoke(player.spigot()); } catch (ReflectiveOperationException e) { throw new RuntimeException(e); }