package ncrashed.registration;

import ncrashed.registration.client.ClientProxy;
import net.minecraft.client.Minecraft;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.Mod.PostInit;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.relauncher.Side;

@Mod(modid="NCRegistration", name="Registration", version="0.0.2")
@NetworkMod(clientSideRequired=true, serverSideRequired=true)
public class RegistrationMod 
{
	public static String AUTH_SERVER_HOST = "http://foguan.net";
	public static String AUTH_SERVER_MIRROW = "90.155.231.47:80";
	
    // The instance of your mod that Forge uses.
    @Instance("NCRegistration")
    public static RegistrationMod instance;
    
    
    // Says where the client and server 'proxy' code is loaded.
    @SidedProxy(clientSide="ncrashed.registration.client.ClientProxy", serverSide="ncrashed.registration.CommonProxy")
    public static CommonProxy proxy;
    
    @PreInit
    public void preInit(FMLPreInitializationEvent event) 
    {
    	proxy.initConfig(event.getModConfigurationDirectory());
    }
    
    @Init
    public void load(FMLInitializationEvent event) 
    {
    	proxy.initCommands();
    	proxy.initLoginInformation();
    }
    
    @PostInit
    public void postInit(FMLPostInitializationEvent event) {
            // Stub Method
    }
}
