@Override
    protected MessagingFactory<?> provideMessagingFactory() {
        return new BungeeMessagingFactory(this);
    }
LuckPerms implementation for the BungeeCord API.
bungee/src/main/java/me/lucko/luckperms/bungee/LPBungeePlugin.java