/**
 * Provide benefits to Enjin points holders
 */
package com.ckxng.enjinbenefits;

import net.minecraft.init.Blocks;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.common.config.Configuration;

@Mod(modid = EnjinBenefitsMod.MODID, version = EnjinBenefitsMod.VERSION, name = EnjinBenefitsMod.NAME)

/**
 * Enjin Benefits Mod loader class
 * @author Cameron King <cking@ckxng.com>
 */
public class EnjinBenefitsMod {
    public static final String MODID = "enjinbenefits";
    public static final String NAME = "Enjin Benefits";
    public static final String VERSION = "0.1.0";

    /** The key provided by the Enjin admin panel - SECRET! */
    public static String enjinKey = "";
    
    /**
     * 
     * @param event
     */
    @EventHandler
    public void preInit(FMLPreInitializationEvent event) {
            Configuration config = new Configuration(event.getSuggestedConfigurationFile());
            config.load();
            
            enjinKey = config.getString("enjinKey", "api", enjinKey, 
            		"The key provided by the Enjin admin panel - SECRET!");
            
            config.save();
            
    }
    
    @EventHandler
    public void init(FMLInitializationEvent event)
    {
        System.out.println("Let's have fun with: " + this.NAME);
    }
}


@@ -859,16 +859,150 @@
    %0A
+    /** The API URL provided by the Enjin admin panel */%0A    public static String enjinApiUrl = %22https://example.enjin.com/api%22;%0A    %0A
     /**%0A
     
@@ -997,16 +997,16 @@
     /**%0A
-
      * %0A
@@ -1226,37 +1226,25 @@
 fig.load();%0A
-            
 %0A
+
             
@@ -1301,16 +1301,16 @@
 inKey, %0A
-
         
@@ -1370,16 +1370,160 @@
 CRET!%22);
+%0A%0A            enjinApiUrl = config.getString(%22enjinApiUrl%22, %22api%22, enjinApiUrl, %0A            %09%09%22The API URL provided by the Enjin admin panel%22);
 %0A       

Add enjinApiURL config