diff --git a/Plan/src/main/java/com/djrapitops/plan/system/settings/theme/ThemeConfig.java b/Plan/src/main/java/com/djrapitops/plan/system/settings/theme/ThemeConfig.java index 67e0d8b6f..eb1b37420 100644 --- a/Plan/src/main/java/com/djrapitops/plan/system/settings/theme/ThemeConfig.java +++ b/Plan/src/main/java/com/djrapitops/plan/system/settings/theme/ThemeConfig.java @@ -10,6 +10,7 @@ import com.djrapitops.plugin.api.config.Config; import com.djrapitops.plugin.api.utility.log.Log; import java.io.File; +import java.io.FileNotFoundException; import java.io.IOException; import java.util.List; @@ -76,7 +77,9 @@ public class ThemeConfig extends Config { } File themeFile = new File(folder, "theme.yml"); if (!themeFile.exists()) { - themeFile.createNewFile(); + if (!themeFile.createNewFile()) { + throw new FileNotFoundException("Failed to create theme.yml"); + } } return themeFile; }