Q_UNUSED(command);
void commandReload( cUOSocket *socket, const QString &command, QStringList &args ){	// Reload accounts	// Reload scripts	// Reload all	if( args.count() == 0 )	{		socket->sysMessage( tr( "Usage: reload <accounts|scripts|all>" ) );		return;	}	QString subCommand = args[0].lower();	// accounts	if( subCommand == "accounts" )	{		Accounts::instance()->reload();		socket->sysMessage( tr("Accounts reloaded") );	}	if( subCommand == "python" )	{		clConsole.send( "Reloading python scripts\n" );		ScriptManager->reload();		NewMagic->load();		ContextMenus::instance()->reload();	}	if( subCommand == "scripts" )	{		clConsole.send( "Reloading definitions, scripts and wolfpack.xml\n" );		SrvParams->reload(); // Reload wolfpack.xml		DefManager->reload(); //Reload Definitions		Accounts::instance()->reload();		SpawnRegions::instance()->reload();		cAllTerritories::getInstance()->reload();		Resources::instance()->reload();		MakeMenus::instance()->reload();		ScriptManager->reload(); // Reload Scripts		NewMagic->load();		ContextMenus::instance()->reload();		// Update the Regions		AllCharsIterator iter;		for( iter.Begin(); !iter.atEnd(); iter++ )		{			P_CHAR pChar = iter.GetData();			if( pChar )			{				cTerritory *region = cAllTerritories::getInstance()->region( pChar->pos().x, pChar->pos().y, pChar->pos().map );				pChar->setRegion( region );			}		}		cNetwork::instance()->reload(); // This will be integrated into the normal definition system soon		socket->sysMessage( tr("Definitions, scripts and wolfpack.xml reloaded") );	}	if( subCommand == "all" )	{				clConsole.send( "Reloading definitions, scripts and wolfpack.xml\n" );		SrvParams->reload(); // Reload wolfpack.xml		DefManager->reload(); //Reload Definitions		Accounts::instance()->reload();		SpawnRegions::instance()->reload();		cAllTerritories::getInstance()->reload();		Resources::instance()->reload();		MakeMenus::instance()->reload();		ScriptManager->reload(); // Reload Scripts		ContextMenus::instance()->reload();		NewMagic->load();		// Update the Regions		AllCharsIterator iter;		for( iter.Begin(); !iter.atEnd(); iter++ )		{			P_CHAR pChar = iter.GetData();			if( pChar )			{				cTerritory *region = cAllTerritories::getInstance()->region( pChar->pos().x, pChar->pos().y, pChar->pos().map );				pChar->setRegion( region );			}		}		cNetwork::instance()->reload(); // This will be integrated into the normal definition system soon		socket->sysMessage( tr("Accounts, definitions, scripts and wolfpack.xml reloaded") );	}}