package com.gendeathrow.skills.core;

import net.minecraft.command.ICommandManager;
import net.minecraft.command.ServerCommandManager;
import net.minecraft.server.MinecraftServer;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.Mod.Instance;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper;

import com.gendeathrow.skills.core.proxies.CommonProxy;
import com.sun.istack.internal.logging.Logger;

@Mod(modid = Skillz.MODID, version = Skillz.VERSION, name = Skillz.Name)
public class Skillz
{
	    public static final String MODID = "skillz";
	    public static final String VERSION = "0.0.7";
	    public static final String Name = "Skillz";
	    public static final String Proxy = "com.gendeathrow.skills.core.proxies";
	    public static final String Channel = "SZ_GenD";
	    
	    public static Logger log;
	    
	    @Instance(Skillz.MODID)
	    public static Skillz instance;
	    
		@SidedProxy(clientSide = Skillz.Proxy + ".ClientProxy", serverSide = Skillz.Proxy + ".CommonProxy")
		public static CommonProxy proxy;

		public SimpleNetworkWrapper network;
		
		
		@EventHandler
		public void preInit(FMLPreInitializationEvent event)
		{
			proxy.preInit(event);
		}
	    @EventHandler
	    public void init(FMLInitializationEvent event)
	    {
	    	proxy.init(event);
	    }
	    @EventHandler
		public void postInit(FMLPostInitializationEvent event)
		{
			proxy.postInit(event);
		}
		
		@EventHandler
		public void serverStart(FMLServerStartingEvent event)
		{
			//MinecraftServer server = MinecraftServer.getServer();
			//ICommandManager command = server.getCommandManager();
			//ServerCommandManager manager = (ServerCommandManager) command;
			
//			manager.registerCommand(new CommandPhysics());

		}

}

@@ -35,150 +35,8 @@
 e;%0A%0A
-import net.minecraft.command.ICommandManager;%0Aimport net.minecraft.command.ServerCommandManager;%0Aimport net.minecraft.server.MinecraftServer;%0A
 impo
@@ -73,16 +73,16 @@
 on.Mod;%0A
+
 import n
@@ -649,31 +649,18 @@
 ort 
-com.sun.istack.internal
+org.apache
 .log
@@ -664,16 +664,22 @@
 logging.
+log4j.
 Logger;%0A
@@ -1081,16 +1081,17 @@
  static 
+ 
 Logger l
@@ -1417,36 +1417,68 @@
 ionEvent event)%0A
-
 %09%09%7B%0A
+%09%09%09log = event.getModLog();%0A%09%09%09%0A
 %09%09%09proxy.preInit

fix logger