Question Sending players over Velocity from spigot server

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 ;)