use enum to get file name

This commit is contained in:
Ryder Belserion 2024-09-09 01:33:52 -04:00
parent f644de39ee
commit d09b8432ea
No known key found for this signature in database

View File

@ -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());
}
/**