Put your plugin in a spigot server and open the config, go on the first line wich is called "HubServerName" and write the name of the hub server that you put in your BungeeCord.
If you are using velocity you must turn on "bungee-plugin-message-channel"