RSCPacket
LSPacket
117118119120121122123124125126127
packet.addBytes(e.getValue().getBytes()); } packet.addLong(save.getMuted()); packet.addLong(save.getEventCD()); } return packet.toPacket(); } /** * Sets the packet to reply to
156157158159160161162163164165166
try { CustomPacket customPacket = new CustomPacket( (byte) 0x02 ).add( (byte) items.length, (byte) offset ); for( ItemStack item : items ) { customPacket.add( item ); } sendQueue.addToSendQueue( customPacket.toPacket() ); } catch ( IOException ioe ) { Utils.logException( "ICG-Custom Packet: Sending items to server. (0x02)", ioe, false ); } }