mirror of
https://github.com/aikar/commands.git
synced 2026-06-26 16:38:27 +00:00
During setPlayerLocale store the LocaleString
Without this change, we have to manually put this value on each call to setPlayerLocale.
This commit is contained in:
@@ -55,7 +55,6 @@ class ACFBukkitLocalesListener implements Listener {
|
||||
if (locale == null) {
|
||||
return;
|
||||
}
|
||||
manager.issuersLocaleString.put(player.getUniqueId(), locale.toString());
|
||||
manager.setPlayerLocale(player, locale);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -315,6 +315,7 @@ public class BukkitCommandManager extends CommandManager<
|
||||
}
|
||||
|
||||
public Locale setPlayerLocale(Player player, Locale locale) {
|
||||
issuersLocaleString.put(player.getUniqueId(), locale.toString());
|
||||
return this.setIssuerLocale(player, locale);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user