/**
 * 
 */
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.FMLInitializationEvent;

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

/**
 * @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 = "1.0";

    @EventHandler
    public void init(FMLInitializationEvent event)
    {
        System.out.println("DIRT BLOCK >> "+Blocks.dirt.getUnlocalizedName());
    }
}


@@ -1,15 +1,55 @@
 /**%0A * 
+Provide benefits to Enjin points holders
 %0A */%0Apac
@@ -190,16 +190,76 @@
 andler;%0A
+import cpw.mods.fml.common.event.FMLPreInitializationEvent;%0A
 import c
@@ -306,16 +306,71 @@
 onEvent;
+%0Aimport net.minecraftforge.common.config.Configuration;
 %0A%0A@Mod(m
@@ -471,16 +471,51 @@
 E)%0A%0A/**%0A
+ * Enjin Benefits Mod loader class%0A
  * @auth
@@ -552,11 +552,8 @@
 om%3E%0A
- *%0A
  */%0A
@@ -745,16 +745,168 @@
 %221.0%22;%0A%0A
+    /** The key provided by the Enjin admin panel - SECRET! */%0A    public static String enjinKey = %22%22;%0A    %0A    /**%0A     * %0A     * @param event%0A     */%0A
     @Eve
@@ -935,16 +935,22 @@
 oid 
-i
+preI
 nit(FML
+Pre
 Init
@@ -971,20 +971,16 @@
 t event)
-%0A   
  %7B%0A     
@@ -986,76 +986,474 @@
     
-System.out.println(%22DIRT BLOCK %3E%3E %22+Blocks.dirt.getUnlocalizedName()
+    Configuration config = new Configuration(event.getSuggestedConfigurationFile());%0A            config.load();%0A            %0A            enjinKey = config.getString(%22enjinKey%22, %22api%22, enjinKey, %0A            %09%09%22The key provided by the Enjin admin panel - SECRET!%22);%0A            %0A            config.save();%0A            %0A    %7D%0A    %0A    @EventHandler%0A    public void init(FMLInitializationEvent event)%0A    %7B%0A        System.out.println(%22Let's have fun with: %22 + this.NAME
 );%0A 

add config file with enjinKey