From d09b8432ea58f05b097884e2762334f7454df6c1 Mon Sep 17 00:00:00 2001 From: Ryder Belserion Date: Mon, 9 Sep 2024 01:33:52 -0400 Subject: [PATCH] use enum to get file name --- .../com/badbones69/crazyauctions/configs/ConfigManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/paper/src/main/java/com/badbones69/crazyauctions/configs/ConfigManager.java b/paper/src/main/java/com/badbones69/crazyauctions/configs/ConfigManager.java index 591795a..2a4c82e 100644 --- a/paper/src/main/java/com/badbones69/crazyauctions/configs/ConfigManager.java +++ b/paper/src/main/java/com/badbones69/crazyauctions/configs/ConfigManager.java @@ -43,14 +43,15 @@ public class ConfigManager { * Refreshes configuration files. */ public static void refresh() { - getCustomConfig("config-v2.yml").reload(); + getCustomConfig(Files.config.getFileName()).reload(); + getCustomConfig(Files.auctions.getFileName()).reload(); } /** * @return gets config-v2.yml */ public static SettingsManager getConfig() { - return getCustomConfig("config-v2.yml"); + return getCustomConfig(Files.config.getFileName()); } /**