mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-24 22:26:46 +01:00
Load locale manager after config manager
This commit is contained in:
parent
8e1f002808
commit
8a4318ee1f
@ -118,6 +118,7 @@ public final class LocaleManager {
|
||||
pluginRef.getLogger().log(Level.WARNING, "Failed to load locale from " + localePath, e);
|
||||
}
|
||||
}
|
||||
|
||||
bundle = ResourceBundle.getBundle(BUNDLE_ROOT, locale);
|
||||
enBundle = ResourceBundle.getBundle(BUNDLE_ROOT, java.util.Locale.US);
|
||||
}
|
||||
|
@ -138,9 +138,6 @@ public class mcMMO extends JavaPlugin {
|
||||
PluginManager pluginManager = getServer().getPluginManager();
|
||||
healthBarPluginEnabled = pluginManager.getPlugin("HealthBar") != null;
|
||||
|
||||
//Init Locale Manager
|
||||
localeManager = new LocaleManager(this);
|
||||
|
||||
//Init Permission Tools
|
||||
permissionTools = new PermissionTools(this);
|
||||
|
||||
@ -148,9 +145,12 @@ public class mcMMO extends JavaPlugin {
|
||||
|
||||
setupFilePaths();
|
||||
|
||||
//modManager = new ModManager();
|
||||
|
||||
//Init config manager etc
|
||||
loadConfigFiles();
|
||||
|
||||
//Init Locale Manager
|
||||
localeManager = new LocaleManager(this);
|
||||
|
||||
registerDynamicSettings(); //Do this after configs are loaded
|
||||
|
||||
//Init TextComponentFactory
|
||||
|
Loading…
Reference in New Issue
Block a user