Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void connect(Player p, String servername) {
- ByteArrayOutputStream b = new ByteArrayOutputStream();
- DataOutputStream out = new DataOutputStream(b);
- try {
- out.writeUTF("Connect");
- out.writeUTF(servername);
- } catch (IOException e) {
- e.printStackTrace();
- }
- p.sendPluginMessage(Main.instace, "BungeeCord", b.toByteArray());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement