Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void sendToServer(Player p, String s) {
- String server = ChatColor.stripColor(s.replace("[", "").replace(" ", "").replace("]", ""));
- ByteArrayOutputStream b = new ByteArrayOutputStream();
- DataOutputStream out = new DataOutputStream(b);
- try {
- out.writeUTF("Connect");
- out.writeUTF(server);
- } catch (IOException localIOException) {}
- p.sendPluginMessage(CloudServer.getInstance(), "BungeeCord", b.toByteArray());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement