package com.ForgeEssentials.client;

import net.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.ObfuscationReflectionHelper;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.network.NetworkMod.SidedPacketHandler;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

@NetworkMod(clientSideRequired = false, serverSideRequired = false, clientPacketHandlerSpec = @SidedPacketHandler(channels =
{ "ForgeEssentials" }, packetHandler = com.ForgeEssentials.client.network.PacketHandler.class))
@Mod(modid = "ForgeEssentialsClient", name = "Forge Essentials Client Addon", version = "@VERSION@")
public class ForgeEssentialsClient
{

	@SideOnly(Side.CLIENT)
	private static PlayerInfoClient	info;

	@PreInit
	public void preInit(FMLPreInitializationEvent e)
	{
		if (FMLCommonHandler.instance().getSide().isServer() && ObfuscationReflectionHelper.obfuscation)
			throw new RuntimeException("ForgeEssentialsClient should not be installed on a server!");
	}

	@SideOnly(Side.CLIENT)
	@Init
	public void load(FMLInitializationEvent e)
	{
		NetworkRegistry.instance().registerConnectionHandler(new ClientConnectionHandler());
		MinecraftForge.EVENT_BUS.register(new CUIRenderrer());
	}

	@SideOnly(Side.CLIENT)
	public static PlayerInfoClient getInfo()
	{
		if (info == null)
			info = new PlayerInfoClient();
		return info;
	}

	@SideOnly(Side.CLIENT)
	public static void setInfo(PlayerInfoClient info)
	{
		ForgeEssentialsClient.info = info;
	}

}

@@ -63,30 +63,121 @@
 .common.
-MinecraftForge
+Configuration;%0Aimport net.minecraftforge.common.MinecraftForge;%0Aimport net.minecraftforge.common.Property
 ;%0Aimport
@@ -1101,16 +1101,43 @@
 ient%0A%7B%0A%0A
+%09private boolean allowCUI;%0A
 %09@SideOn
@@ -1447,16 +1447,405 @@
 ver!%22);%0A
+%09%09Configuration config = new Configuration(e.getSuggestedConfigurationFile());%0A%09%09config.load();%0A%09%09config.addCustomCategoryComment(%22Core%22, %22Configure ForgeEssentials .%22);%0A%0A%09%09Property prop = config.get(%22Core%22, %22allowCUI%22, true);%0A%09%09prop.comment = %22Set to false to disable the WorldControl CUI.%22;%0A%09%09allowCUI = prop.getBoolean(true);%0A%09%09// any other parts please config here%0A%09%09config.save();%0A%09%09%0A
 %09%7D%0A%0A%09@Si
@@ -2005,16 +2005,34 @@
 ler());%0A
+%09%09if (allowCUI)%7B%0A%09
 %09%09Minecr
@@ -2080,16 +2080,20 @@
 rer());%0A
+%09%09%7D%0A
 %09%7D%0A%0A%09@Si

Add config option to disable the WCCUI for clients.