mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-15 15:15:38 +01:00
fix: Restore locales setup method (#2881)
This commit is contained in:
parent
e4fd23709f
commit
3f6c3047d8
@ -166,6 +166,7 @@ public class MultiverseCore extends JavaPlugin implements MVCore {
|
||||
this.anchorManager.loadAnchors();
|
||||
this.registerEvents();
|
||||
this.registerCommands();
|
||||
this.setUpLocales();
|
||||
this.registerDestinations();
|
||||
this.setupMetrics();
|
||||
this.saveMVConfig();
|
||||
@ -217,6 +218,15 @@ public class MultiverseCore extends JavaPlugin implements MVCore {
|
||||
this.commandManager.registerCommand(new UnloadCommand(this));
|
||||
}
|
||||
|
||||
/**
|
||||
* Register locales
|
||||
*/
|
||||
private void setUpLocales() {
|
||||
this.commandManager.usePerIssuerLocale(true, true);
|
||||
this.commandManager.getLocales().addFileResClassLoader(this);
|
||||
this.commandManager.getLocales().addMessageBundles("multiverse-core");
|
||||
}
|
||||
|
||||
/**
|
||||
* Register all the destinations.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user