From 0f898380db0bfcef299f873ebffc4c051a507f17 Mon Sep 17 00:00:00 2001 From: Telesphoreo Date: Fri, 1 Apr 2022 23:09:43 -0500 Subject: [PATCH] this is why we need an API --- src/main/java/dev/plex/config/ModuleConfig.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/java/dev/plex/config/ModuleConfig.java b/src/main/java/dev/plex/config/ModuleConfig.java index 9ba1827..36e3347 100644 --- a/src/main/java/dev/plex/config/ModuleConfig.java +++ b/src/main/java/dev/plex/config/ModuleConfig.java @@ -45,9 +45,16 @@ public class ModuleConfig extends YamlConfiguration } } - public void load() throws IOException, InvalidConfigurationException + public void load() { - super.load(file); + try + { + super.load(file); + } + catch (IOException | InvalidConfigurationException ex) + { + ex.printStackTrace(); + } } /**