Answers for "how to make a spigot plugin work between servers bungeecord"

1

bukkit java connect player to another server in 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());
Posted by: Guest on June-21-2020

Code answers related to "how to make a spigot plugin work between servers bungeecord"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language