Question Sending players over Velocity from spigot server

  • After careful consideration and due to limited usage, we’ve made the decision to discontinue the PaperMC forums. Moving forward, we recommend using Hangar for plugin uploads, and for all other community discussions and support, please join us on Discord.

itoncek

New member
Mar 14, 2023
1
0
1
Hello paper people,
When you are using Bungeecord, you can run following code on spigot server to send player to another server.

Java:
ByteArrayOutputStream b = new ByteArrayOutputStream();
DataOutputStream out = new DataOutputStream(b);
try {
    out.writeUTF("Connect");
    out.writeUTF(SERVERNAME);
} catch (IOException eee) {
    Bukkit.getLogger().info("You'll never see me!");
}
Bukkit.getPlayer(player).sendPluginMessage(plugin, "BungeeCord", b.toByteArray());


My question is, if this is possible with Velocity.

Thanks for Answer, Toncek ;)