228 uint32 teamId = atoi(idStr);
276 std::string oldCaptainName;
285 TC_LOG_DEBUG(
"bg.arena",
"GameMaster: %s [%s] promoted player: %s [%s] to leader of arena team \"%s\"[Id: %u]",
287 target->GetName().c_str(), target->GetGUID().ToString().c_str(), arena->
GetName().c_str(), arena->
GetId());
289 TC_LOG_DEBUG(
"bg.arena",
"Console: promoted player: %s [%s] to leader of arena team \"%s\"[Id: %u]",
290 target->GetName().c_str(), target->GetGUID().ToString().c_str(), arena->
GetName().c_str(), arena->
GetId());
void SetSentErrorMessage(bool val)
Definition: Chat.h:138
Definition: Language.h:846
std::string const & GetName() const
Definition: ArenaTeam.h:130
bool IsMember(ObjectGuid guid) const
Definition: ArenaTeam.cpp:486
Definition: Language.h:847
void SetCaptain(ObjectGuid guid)
Definition: ArenaTeam.cpp:278
#define TC_LOG_DEBUG(filterType__,...)
Definition: Log.h:198
Player * GetPlayer() const
Definition: WorldSession.h:927
bool extractPlayerTarget(char *args, Player **player, ObjectGuid *player_guid=NULL, std::string *player_name=NULL)
Definition: Chat.cpp:945
Definition: Language.h:851
uint32 GetId() const
Definition: ArenaTeam.h:124
Definition: Language.h:775
uint32_t uint32
Definition: Define.h:150
static bool GetPlayerNameByGUID(ObjectGuid const &guid, std::string &name)
Definition: ObjectMgr.cpp:2258
Definition: ArenaTeam.h:112
Definition: Language.h:841
Definition: Language.h:844
bool IsFighting() const
Definition: ArenaTeam.cpp:781
WorldSession * GetSession()
Definition: Chat.h:59
void PSendSysMessage(const char *fmt, Args &&...args)
Definition: Chat.h:72
#define sArenaTeamMgr
Definition: ArenaTeamMgr.h:53
void extractOptFirstArg(char *args, char **arg1, char **arg2)
Definition: Chat.cpp:998
Definition: ObjectGuid.h:189
virtual void SendSysMessage(char const *str, bool escapeCharacters=false)
Definition: Chat.cpp:152
ObjectGuid GetCaptain() const
Definition: ArenaTeam.h:129