Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void write(DataOutputStream out, String group, String prefix) {
- ByteBuf buf = Unpooled.buffer();
- Util.writeVarInt(buf, 0x02); //packet id
- Util.writeString(buf, "Internetak);
- int lenght = buf.readableBytes();
- byte[] packet = new byte[lenght];
- buf.readBytes(packet);
- try {
- Util.writeVarInt(out, lenght);
- out.write(packet);
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement