From 95c591f55c31902a2cc1f2a804368fb76549cc46 Mon Sep 17 00:00:00 2001 From: Logan Magnan Date: Thu, 26 Sep 2024 17:03:21 -0400 Subject: [PATCH] added config updater --- .../com/loganmagnan/pluginbase/utils/config/file/Config.java | 2 +- .../loganmagnan/pluginbase/utils/config/file/ConfigFile.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/loganmagnan/pluginbase/utils/config/file/Config.java b/src/main/java/com/loganmagnan/pluginbase/utils/config/file/Config.java index ed7064f..586c991 100644 --- a/src/main/java/com/loganmagnan/pluginbase/utils/config/file/Config.java +++ b/src/main/java/com/loganmagnan/pluginbase/utils/config/file/Config.java @@ -30,7 +30,7 @@ public class Config { } try { - ConfigUpdater.update(PluginBase.getInstance(), name, this.configFile); + ConfigUpdater.update(PluginBase.getInstance(), name + ".yml", this.configFile); } catch (Exception exception) { exception.printStackTrace(); } diff --git a/src/main/java/com/loganmagnan/pluginbase/utils/config/file/ConfigFile.java b/src/main/java/com/loganmagnan/pluginbase/utils/config/file/ConfigFile.java index b695d73..5adbf74 100644 --- a/src/main/java/com/loganmagnan/pluginbase/utils/config/file/ConfigFile.java +++ b/src/main/java/com/loganmagnan/pluginbase/utils/config/file/ConfigFile.java @@ -27,7 +27,7 @@ public class ConfigFile { plugin.saveResource(name + ".yml", false); try { - ConfigUpdater.update(PluginBase.getInstance(), name, this.file); + ConfigUpdater.update(PluginBase.getInstance(), name + ".yml", this.file); } catch (Exception exception) { exception.printStackTrace(); }