When some of the Judge's staff overhear them, they decide to steal the jewellery instead.
The context suggests that there is a situation where a Judge's staff overhears a plan and then decides to steal the jewelry.