If the value of the improvements exceed the value of the land aside from the improvements, the court may order that the occupying claimant shall, by a time to be specified in the order, take the land, and pay the ascertained value thereof to the plaintiff, and in default of such payment the plaintiff shall take possession of the land, discharged from all claim of such occupying claimant.
§ 524.200, RSMo