mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 02:04:52 +01:00
* Various functions to broadcast output to GMs only - Patch by Machiavelli
--HG-- branch : trunk
This commit is contained in:
@@ -139,6 +139,16 @@ bool ChatHandler::HandleAnnounceCommand(const char* args)
|
||||
return true;
|
||||
}
|
||||
|
||||
// announce to logged in GMs
|
||||
bool ChatHandler::HandleGMAnnounceCommand(const char* args)
|
||||
{
|
||||
if(!*args)
|
||||
return false;
|
||||
|
||||
sWorld.SendGMText(LANG_GM_BROADCAST,args);
|
||||
return true;
|
||||
}
|
||||
|
||||
//notification player at the screen
|
||||
bool ChatHandler::HandleNotifyCommand(const char* args)
|
||||
{
|
||||
@@ -155,6 +165,22 @@ bool ChatHandler::HandleNotifyCommand(const char* args)
|
||||
return true;
|
||||
}
|
||||
|
||||
//notification GM at the screen
|
||||
bool ChatHandler::HandleGMNotifyCommand(const char* args)
|
||||
{
|
||||
if(!*args)
|
||||
return false;
|
||||
|
||||
std::string str = GetTrinityString(LANG_GM_NOTIFY);
|
||||
str += args;
|
||||
|
||||
WorldPacket data(SMSG_NOTIFICATION, (str.size()+1));
|
||||
data << str;
|
||||
sWorld.SendGlobalGMMessage(&data);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
//Enable\Dissable GM Mode
|
||||
bool ChatHandler::HandleGMmodeCommand(const char* args)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user