Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. public void onSendPlayerLobbyServer(Player p) {
  2.  
  3. ByteArrayOutputStream array = new ByteArrayOutputStream();
  4. DataOutputStream out = new DataOutputStream(array);
  5.  
  6. try {
  7.  
  8. out.writeUTF("Connect");
  9.  
  10. out.writeUTF("lobby");
  11.  
  12. } catch (IOException e) {
  13. e.printStackTrace();
  14. }
  15. p.sendPluginMessage(plugin, "BungeeCord", array.toByteArray());
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement