Advertisement
Guest User

Untitled

a guest
May 8th, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public static void sendToServer(Player p, String s) {
  2. String server = ChatColor.stripColor(s.replace("[", "").replace(" ", "").replace("]", ""));
  3. ByteArrayOutputStream b = new ByteArrayOutputStream();
  4. DataOutputStream out = new DataOutputStream(b);
  5. try {
  6. out.writeUTF("Connect");
  7. out.writeUTF(server);
  8. } catch (IOException localIOException) {}
  9. p.sendPluginMessage(CloudServer.getInstance(), "BungeeCord", b.toByteArray());
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement