package com.ForgeEssentials.core.compat;

import com.ForgeEssentials.core.ForgeEssentials;
import com.ForgeEssentials.util.OutputHandler;

import cpw.mods.fml.common.Loader;

public class SanityChecker
{
	public void run()
	{
		if (ForgeEssentials.sanitycheck = false)
		{
			OutputHandler.severe("Sanity checking has been disabled. Do not bug the FE team with issues running FE on a bukkit server, or with any other server mod.");
			return;
		}

		// Check for BukkitForge
		if (Loader.isModLoaded("BukkitForge"))
		{
			OutputHandler.severe("Sanity check failed: Detected BukkitForge, bad things may happen, proceed at your own risk.");
		}

		// Check for Fihgu's mods
		else if (Loader.isModLoaded("fihgu's Core Mod"))
		{
			OutputHandler.severe("Sanity check failed: Detected Fihgu's mods, stopping server for your safety.");
			//throw new RuntimeException("ForgeEssentials: Please DO NOT use FE with Fihgu's mods, bad things WILL happen. Trust us. You were warned,");
		}

		else
		{
			// Check for MCPC+ or LavaBukkit
			try
			{
				Class.forName("org.bukkit.craftbukkit.Main", false, getClass().getClassLoader());
				OutputHandler.severe("Sanity check failed: Detected a ForgeBukkit server implementation, bad things may happen, proceed at your own risk.");
			}
			catch (ClassNotFoundException e)
			{
				// Safe!
			}
		}
		OutputHandler.fine("Sanity check passed, it's all good to go!");

	}

}

@@ -225,16 +225,17 @@
 %7B%0A%09%09if (
+!
 ForgeEss
@@ -257,16 +257,8 @@
 heck
- = false
 )%0A%09%09

Fix a typo in sanity check