@Override
 public void write(NetOutput out) throws IOException {
   out.writeString(this.serverId);
   byte encoded[] = this.publicKey.getEncoded();
   out.writeVarInt(encoded.length);
   out.writeBytes(encoded);
   out.writeVarInt(this.verifyToken.length);
   out.writeBytes(this.verifyToken);
 }
 @Override
 public void write(NetOutput out) throws IOException {
   out.writeString(this.channel);
   out.writeBytes(this.data);
 }