====== cRoot ======
There is always only one cRoot object in MCServer. cRoot manages all the important objects such as [[api:cWorld]] and [[api:cServer]]
===== Class definition =====
<code cpp>
class cRoot
{
public:
	static cRoot* Get();
	cServer* GetServer();
	cWorld* GetWorld();
	cGroupManager* GetGroupManager();
	cRecipeChecker* GetRecipeChecker();
	cFurnaceRecipe* GetFurnaceRecipe();
	cWebAdmin*GetWebAdmin();
	cPluginManager* GetPluginManager();
	void ServerCommand( const char* a_Cmd );
};</code>
===== Functions =====
==== Get() ====
This function returns the cRoot object
==== GetServer() ====
Returns the [[api:cServer]] object
==== GetWorld() ====
Returns the [[api:cWorld]] object
==== GetGroupManager() ====
Returns the [[api:cGroupManager]] object
==== GetRecipeChecker() ====
Returns the [[api:cRecipeChecker]] object
==== GetFurnaceRecipe() ====
Returns the [[api:cFurnaceRecipe]] object
==== GetWebAdmin() ====
Returns the [[api:cWebAdmin]] object
==== ServerCommand() ====
Issues a command as if it was typed in the console. You can for example stop the server by executing this code:
<code lua>
cRoot:Get():ServerCommand("stop")
</code>



