@@ -0,0 +1,2226 @@
+package info.ata4.minecraft.dragon;%0A%0Aimport java.io.File;%0Aimport java.util.logging.Level;%0Aimport java.util.logging.Logger;%0Aimport net.minecraftforge.common.Configuration;%0Aimport net.minecraftforge.common.Property;%0A%0A/**%0A *%0A * @author Nico Bergemann %3Cbarracuda415 at yahoo.de%3E%0A */%0Apublic class DragonMountsConfig %7B%0A    %0A    private static final Logger L = DragonMounts.L;%0A    %0A    private File configFile;%0A    private Configuration config;%0A    %0A    // non-string defaults so I don't have to hardcode them twice...%0A    private static final boolean DEF_EGGS_IN_CHESTS = false;%0A    private static final boolean DEF_DEBUG = false;%0A    %0A    // config properties%0A    private Property eggsInChests;%0A    private Property debug;%0A    %0A    public DragonMountsConfig(File configFile) %7B%0A        this.configFile = configFile;%0A        load();%0A        save();%0A    %7D%0A    %0A    public void load() %7B%0A        try %7B%0A            if (config == null) %7B%0A                config = new Configuration(configFile);%0A            %7D else %7B%0A                config.load();%0A            %7D%0A        %7D catch (Exception ex) %7B%0A            L.log(Level.WARNING, %22Can't load config file%22 , ex);%0A        %7D%0A        %0A        try %7B%0A            eggsInChests = config.get(%22server%22, %22eggsInChests%22, DEF_EGGS_IN_CHESTS, %22Spawns dragon eggs in generated chests when enabled%22);%0A            debug = config.get(%22client%22, %22debug%22, DEF_EGGS_IN_CHESTS, %22Debug mode. Unless you're a developer or are told to activate it, you don't want to set this to true.%22);%0A        %7D catch (Exception ex) %7B%0A            L.log(Level.WARNING, %22Can't load config file%22, ex);%0A        %7D%0A    %7D%0A    %0A    public void save() %7B%0A        try %7B%0A            if (config.hasChanged()) %7B%0A                config.save();%0A            %7D%0A        %7D catch (Exception ex) %7B%0A            L.log(Level.WARNING, %22Can't save config file%22, ex);%0A        %7D%0A    %7D%0A    %0A    public boolean isEggsInChests() %7B%0A        return eggsInChests.getBoolean(DEF_EGGS_IN_CHESTS);%0A    %7D%0A    %0A    public void setEggsInChests(boolean enabled) %7B%0A        eggsInChests.set(enabled);%0A    %7D%0A    %0A    public boolean isDebug() %7B%0A        return debug.getBoolean(DEF_DEBUG);%0A    %7D%0A    %0A    public void setDebug(boolean enabled) %7B%0A        debug.set(enabled);%0A    %7D%0A%7D%0A

Create DragonplusConfig.java