mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-16 04:24:43 +02:00
Forgot to loadKeys()
This commit is contained in:
@ -19,16 +19,16 @@ public abstract class ConfigLoader {
|
||||
public ConfigLoader(String relativePath, String fileName){
|
||||
this.fileName = fileName;
|
||||
configFile = new File(plugin.getDataFolder(), relativePath + File.separator + fileName);
|
||||
load();
|
||||
loadFile();
|
||||
}
|
||||
|
||||
public ConfigLoader(String fileName){
|
||||
this.fileName = fileName;
|
||||
configFile = new File(plugin.getDataFolder(), fileName);
|
||||
load();
|
||||
loadFile();
|
||||
}
|
||||
|
||||
protected void load() {
|
||||
protected void loadFile() {
|
||||
if (!configFile.exists()) {
|
||||
plugin.getLogger().info("Creating mcMMO " + fileName + " File...");
|
||||
createFile();
|
||||
|
Reference in New Issue
Block a user