Wenceslaus also faced serious opposition from the Bohemian nobles and even from his chancellor, the Prague archbishop Jan of Jenštejn. In a conflict surrounding the investiture of the abbot of Kladruby, the torture and murder of the archbishop's vicar-general John of Nepomuk by royal officials in 1393 sparked a noble rebellion. In 1394 Wenceslaus' cousin Jobst of Moravia was named regent, while Wenceslaus was arrested at Králův Dvůr. King Sigismund of Hungary arranged a truce in 1396, and for his efforts he was recognized as heir to Wenceslaus.