Added support for loading message bundles from other ClassLoaders, an… (#99)

* Added support for loading message bundles from other ClassLoaders, and made the Bukkit & Bungee locales attempt to load from the ClassLoader that ACF is apart of, and the ClassLoader that the CommandManagers plugin belongs to

* Added the ability to add/register a ClassLoader to be scanned for Locales. The Locales automatically adds its own ClassLoader to the list, and the Bungee, Bukkit and Sponge implementations automatically add the plugins ClassLoader to the list

* Fixes the issue with conflicting bundle names although they may belong to two different ClassLoaders
This commit is contained in:
Xavier
2018-02-08 15:27:50 -05:00
committed by Daniel Ennis
parent 94caa234cd
commit 0d0b2ef425
4 changed files with 40 additions and 7 deletions
@@ -6,6 +6,7 @@ public class SpongeLocales extends Locales{
public SpongeLocales(SpongeCommandManager manager) {
super(manager);
this.manager = manager;
this.addBundleClassLoader(this.manager.getPlugin().getClass().getClassLoader());
}
@Override