You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using AuthMeBungee on the latest version of Bungee I keep getting this exception in the console, the plugin itself seems to work just fine but the config is not being created.
14:28:35 [ADVERTENCIA] Exception encountered when loading plugin: AuthMeBungee
ch.jalu.injector.exceptions.InjectorException: Class 'class ch.jalu.configme.SettingsManager' with package 'ch.jalu.configme' is outside of the allowed packages. It must be provided explicitly or the package must be passed to the constructor.
at ch.jalu.injector.handlers.preconstruct.PreConstructPackageValidator.process(PreConstructPackageValidator.java:35)
at ch.jalu.injector.handlers.preconstruct.PlainPreConstructHandler.accept(PlainPreConstructHandler.java:11)
at ch.jalu.injector.InjectorImpl.processPreConstructorHandlers(InjectorImpl.java:244)
at ch.jalu.injector.InjectorImpl.get(InjectorImpl.java:157)
at ch.jalu.injector.InjectorImpl.getSingleton(InjectorImpl.java:51)
at fr.xephi.authmebungee.bungeecord.AuthMeBungee.onEnable(AuthMeBungee.java:37)
at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:227)
at net.md_5.bungee.BungeeCord.start(BungeeCord.java:273)
at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:55)
at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
The text was updated successfully, but these errors were encountered:
You can fix this in different ways:
a) Don't limit what package can be instantiated, i.e. new InjectorBuilder().addDefaultHandlers("").create()
b) Extend SettingsManager inside the fr.xephi.auhtmebungee package and use that class instead of ConfigMe's SettingsManager
c) Register the object in the injector immediately, i.e. instead of injector.registerProvider(SettingsManager.class, SpigotSettingsProvider.class); use injector.register(SettingsManager.class, settingsManager) where settingsManager is the object you've created beforehand
When using AuthMeBungee on the latest version of Bungee I keep getting this exception in the console, the plugin itself seems to work just fine but the config is not being created.
The text was updated successfully, but these errors were encountered: