mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-09-03 19:32:34 +02:00
Fix player locale retrieval on Bukkit 1.8 (#2930)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user