Load locale manager after config manager

This commit is contained in:
nossr50 2019-09-28 17:14:28 -07:00
parent 8e1f002808
commit 8a4318ee1f
2 changed files with 6 additions and 5 deletions

View File

@ -118,6 +118,7 @@ public final class LocaleManager {
pluginRef.getLogger().log(Level.WARNING, "Failed to load locale from " + localePath, e); pluginRef.getLogger().log(Level.WARNING, "Failed to load locale from " + localePath, e);
} }
} }
bundle = ResourceBundle.getBundle(BUNDLE_ROOT, locale); bundle = ResourceBundle.getBundle(BUNDLE_ROOT, locale);
enBundle = ResourceBundle.getBundle(BUNDLE_ROOT, java.util.Locale.US); enBundle = ResourceBundle.getBundle(BUNDLE_ROOT, java.util.Locale.US);
} }

View File

@ -138,9 +138,6 @@ public class mcMMO extends JavaPlugin {
PluginManager pluginManager = getServer().getPluginManager(); PluginManager pluginManager = getServer().getPluginManager();
healthBarPluginEnabled = pluginManager.getPlugin("HealthBar") != null; healthBarPluginEnabled = pluginManager.getPlugin("HealthBar") != null;
//Init Locale Manager
localeManager = new LocaleManager(this);
//Init Permission Tools //Init Permission Tools
permissionTools = new PermissionTools(this); permissionTools = new PermissionTools(this);
@ -148,9 +145,12 @@ public class mcMMO extends JavaPlugin {
setupFilePaths(); setupFilePaths();
//modManager = new ModManager(); //Init config manager etc
loadConfigFiles(); loadConfigFiles();
//Init Locale Manager
localeManager = new LocaleManager(this);
registerDynamicSettings(); //Do this after configs are loaded registerDynamicSettings(); //Do this after configs are loaded
//Init TextComponentFactory //Init TextComponentFactory