From 1185ea4f96d058b619c3bcf42ecde867c30d2fdb Mon Sep 17 00:00:00 2001 From: NuclearW Date: Thu, 17 May 2012 21:42:21 -0400 Subject: [PATCH] Beginnings of RepairConfig --- .../gmail/nossr50/config/RepairConfig.java | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/main/java/com/gmail/nossr50/config/RepairConfig.java diff --git a/src/main/java/com/gmail/nossr50/config/RepairConfig.java b/src/main/java/com/gmail/nossr50/config/RepairConfig.java new file mode 100644 index 000000000..46780173d --- /dev/null +++ b/src/main/java/com/gmail/nossr50/config/RepairConfig.java @@ -0,0 +1,33 @@ +package com.gmail.nossr50.config; + +import java.util.ArrayList; +import java.util.List; + +import com.gmail.nossr50.mcMMO; +import com.gmail.nossr50.skills.repair.Repairable; + +public class RepairConfig extends ConfigLoader { + private final String fileName; + private List repairables; + + public RepairConfig(mcMMO plugin, String fileName) { + super(plugin, fileName); + this.fileName = fileName; + } + + @Override + protected void load() { + if(plugin.isInJar(fileName)) addDefaults(); + loadKeys(); + } + + @Override + protected void loadKeys() { + // TODO Auto-generated method stub + } + + protected List getLoadedRepairables() { + if(repairables == null) return new ArrayList(); + return repairables; + } +}