You will need to inform the OR of this inheritance and it will have to be paid across.
How much is it for and what were your total debts.
The friend in my adversity I shall always cherish most. I can better trust those who helped to relieve the gloom of my dark hours than those who are so ready to enjoy with me the sunshine of my prosperity. – Ulysses S. Grant
As Niobe has said, this will need to be paid in full to the official receiver. However, if it covers your initial debts plus added costs, then anything left over will be returned to you.