public void registerListeners(Object obj) {
        // Check if we are running Sponge API 9+
        try {
            final Method method = org.spongepowered.api.event.EventManager.class.getDeclaredMethod("registerListeners", PluginContainer.class, Object.class, MethodHandles.Lookup.class);
            method.invoke(this.game.eventManager(), this.pluginContainer, obj, MethodHandles.lookup());
            return;
        } catch (Throwable t) {
            // ignore
        }
        // Fallback to Sponge API 8
        this.game.eventManager().registerListeners(this.pluginContainer, obj);
    }
Injected configuration directory for the plugin
sponge/src/main/java/me/lucko/luckperms/sponge/LPSpongeBootstrap.java