package com.ForgeEssentials.core;

import com.ForgeEssentials.util.OutputHandler;

import cpw.mods.fml.common.Loader;

public class SanityChecker
{
	public void run(){
		// 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.info("Sanity check passed: No Bukkit server implementations found, starting server.");
	}

}

@@ -1033,20 +1033,16 @@
 %09%09%7D%0A%09%09%7D%0A
-%09%09%7D%0A
 %09%09Output
@@ -1053,12 +1053,12 @@
 ler.
+f
 in
-fo
+e
 (%22Sa
@@ -1078,72 +1078,41 @@
 ssed
-: No Bukkit server implementations found, starting server.%22);%0A%09%7D%0A
+, it's all good to go!%22);%0A%09%09%0A%09%7D%0A%09%09
 %0A%7D%0A

Fix friggin compile errors