with the so-called Bohemian Silesia remained under Habsburg control. After the Seven Years' War, during the rule of Prince-Bishop Philipp Gotthard of Schaffgotsch, a new prosperous period for the town began. In 1767, he moved his court on the Jánský Vrch and Javorník became not only the administrative centre, but also the cultural centre of Upper Silesia. Schaffgotsch hosted here many artistic personalities, the most famous was Carl Ditters von Dittersdorf. After Schaffgotsch's death in 1795, Javorník partially lost its importance, but remained economic centre with developed crafts and textile manufactories. In 1825 a devastating fire once again ravaged the town. Javorník was recovering only slowly and never regained the same importance in the region as it had during the golden age in the second half of the 18th century. Most of the manufacturies never fully recovered. In 1897, the local railway was built, which helped to create various smaller businesses. 20th century According to the Austrian census of 1910 the town had 2,052 inhabitants, 1,956 of whom had permanent residence there. Census asked people for their native language, 1,956 (100%) were German-speaking. Most populous religious group were Roman Catholics with 2,019 (98.4%). During World War II, approximately 30 French and Soviet POWs were interned at the old town prison in Javorník. Other and larger prisoner-of-war camps were located in Zálesí, Travná, and in the hamlet of Račí údolí. From 1938 to 1945 it was one of the municipalities in Sudetenland. By 1938, local ethnic-German population became overwhelmingly pro-Nazi with many locals joining the Sudetendeutsches Freikorps, a para-military Nazi-Germany sponsored and trained organization that was conducting terrorist attacks against the Czechoslovak authorities. One of the most notable attacks of the Freikorps in the town took place on 22 September 1938. A group of 12 members of the Czechoslovak Border Guard was retreating through the town after being attacked from Germany when it was ambushed by over 100 local members of Freikorps. The Czechoslovak soldiers were disarmed and abducted to Germany where they were interned by local authorities in the concentration camp in Paczków. After 1945, under the Beneš decrees most Sudeten Germans were held at several internment camps and then expelled. Many of them were also beaten and killed by numerous militias and paramilitary groups with strong ties to the Communist Party and the Red Army. The town was repopulated by Czech families. Following the Communist coup d'état of 1948,