diff --git a/FPVersionless/src/main/java/dev/tr7zw/firstperson/versionless/FirstPersonBase.java b/FPVersionless/src/main/java/dev/tr7zw/firstperson/versionless/FirstPersonBase.java index 43d05c9c..456c3cb8 100644 --- a/FPVersionless/src/main/java/dev/tr7zw/firstperson/versionless/FirstPersonBase.java +++ b/FPVersionless/src/main/java/dev/tr7zw/firstperson/versionless/FirstPersonBase.java @@ -36,7 +36,7 @@ public void loadConfig() { new String(Files.readAllBytes(settingsFile.toPath()), StandardCharsets.UTF_8), FirstPersonSettings.class); } catch (Exception ex) { - ex.printStackTrace(); + LOGGER.warn("Unable to load the config, creating a new one.", ex); } } if (config == null) { @@ -52,7 +52,7 @@ public void writeSettings() { try { Files.write(settingsFile.toPath(), json.getBytes(StandardCharsets.UTF_8)); } catch (IOException e) { - e.printStackTrace(); + LOGGER.warn("Error while saving the config!", e); } }