Rev 3 | Rev 26 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#include "pch.h"
#pragma hdrstop
#include "ClientGMCommands.h"
#include <Console/ConsoleClient.h>
#include <WowSvcs/ClientServices.h>
/****************************************************************************
*
* Command definitions
*
***/
//===========================================================================
BOOL CCommand_GMResurrect(const char *command, const char *arguments)
{
if (command && *command) {
CDataStore msg;
msg.Put(CMSG_GM_RESURRECT);
msg.PutString(arguments);
msg.Finalize();
ClientServices_Send(&msg);
} else {
ConsoleWrite("Expected a player name", DEFAULT_COLOR);
}
return TRUE;
}
/****************************************************************************
*
* External functions
*
***/
//===========================================================================
void GMClientCommands::Install()
{
ConsoleCommandRegister("resurrect",CCommand_GMResurrect,DEBUG,NOHELP);
}
//===========================================================================
void GMClientCommands::Uninstall()
{
ConsoleCommandUnregister("resurrect");
}