Sentence:  ...was restored to his throne but only on the understanding that he behave <WSD>seemingly</WSD>. 
Meaning of the word marked with <WSD> tags:  In a seemly manner; decorously; with propriety.