mirror of
https://github.com/aikar/commands.git
synced 2026-05-31 06:11:55 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user