1.8 Protocol Update

Adds the new 1.8 protocol.
Your method isn't performance friendly because the protocol will compress the chunk every sending.
My function cache the compressed data, so the server doesn't need to compress the packet over and over again