Guest User

Untitled

a guest
May 26th, 2018
64
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ByteArrayDataOutput test = ByteStreams.newDataOutput();
  2. // test.writeByte(10);
  3. // test.writeUTF("BONJOUR");
  4.  
  5. ByteArrayOutputStream message = new ByteArrayOutputStream();
  6. DataOutputStream out = new DataOutputStream(message);
  7.  
  8. try
  9. {
  10. out.writeByte(10);
  11. out.writeUTF("pvpvpvpvp");
  12. } catch (IOException e)
  13. {
  14. e.printStackTrace();
  15. }
  16.  
  17. player.sendPluginMessage(RegionJukebox.instance, "plaig4sounds", message.toByteArray());
RAW Paste Data