mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Forgot to loadKeys()
This commit is contained in:
parent
c6e5264b7b
commit
51ca29ab9f
@ -12,6 +12,7 @@ public class Config extends ConfigLoader {
|
||||
private Config() {
|
||||
super("config.yml");
|
||||
xpGainMultiplier = getExperienceGainsGlobalMultiplier();
|
||||
loadKeys();
|
||||
}
|
||||
|
||||
public static Config getInstance() {
|
||||
|
@ -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();
|
||||
|
@ -8,6 +8,7 @@ public class SpoutConfig extends ConfigLoader {
|
||||
|
||||
private SpoutConfig() {
|
||||
super("spout.yml");
|
||||
loadKeys();
|
||||
}
|
||||
|
||||
public static SpoutConfig getInstance() {
|
||||
|
@ -32,6 +32,7 @@ public class TreasuresConfig extends ConfigLoader{
|
||||
|
||||
private TreasuresConfig() {
|
||||
super("treasures.yml");
|
||||
loadKeys();
|
||||
}
|
||||
|
||||
public static TreasuresConfig getInstance() {
|
||||
|
@ -26,6 +26,7 @@ public class CustomArmorConfig extends ConfigLoader{
|
||||
|
||||
public CustomArmorConfig() {
|
||||
super("ModConfigs", "armor.yml");
|
||||
loadKeys();
|
||||
}
|
||||
|
||||
public static CustomArmorConfig getInstance() {
|
||||
|
@ -26,6 +26,7 @@ public class CustomBlocksConfig extends ConfigLoader {
|
||||
|
||||
public CustomBlocksConfig() {
|
||||
super("ModConfigs", "blocks.yml");
|
||||
loadKeys();
|
||||
}
|
||||
|
||||
public static CustomBlocksConfig getInstance() {
|
||||
|
@ -28,6 +28,7 @@ public class CustomToolsConfig extends ConfigLoader {
|
||||
|
||||
private CustomToolsConfig() {
|
||||
super("ModConfigs", "tools.yml");
|
||||
loadKeys();
|
||||
}
|
||||
|
||||
public static CustomToolsConfig getInstance() {
|
||||
|
@ -5,7 +5,6 @@ import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import org.bukkit.configuration.ConfigurationSection;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
|
||||
import com.gmail.nossr50.config.ConfigLoader;
|
||||
import com.gmail.nossr50.skills.repair.RepairItemType;
|
||||
@ -18,7 +17,7 @@ public class RepairConfig extends ConfigLoader {
|
||||
|
||||
public RepairConfig(String fileName) {
|
||||
super(fileName);
|
||||
this.config = YamlConfiguration.loadConfiguration(this.configFile);
|
||||
loadKeys();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user