Bukkit Java Connect Player à un autre serveur de Bungeecord

//onEnable in Main class
getServer().getMessenger().registerOutgoingPluginChannel(this, "BungeeCord");

//When you want to connect the player
//"server" is the server name the player should connect to
//the variable "player" is the player you want to connect
ByteArrayDataOutput out = ByteStreams.newDataOutput();
out.writeUTF("Connect");
out.writeUTF("server");
player.sendPluginMessage(main, "BungeeCord", out.toByteArray());
Rapha149