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);
|
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);
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user