mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2024-11-10 10:10:22 +01:00
use enum to get file name
This commit is contained in:
parent
f644de39ee
commit
d09b8432ea
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user