156{
158 return;
159
160 Player* player = session.GetPlayer();
164 std::string areaName = "Unknown";
165 std::string zoneName = "Unknown";
167
169 {
170 areaName = area->area_name[locale];
171 }
172
174 {
175 zoneName = zone->area_name[locale];
176 }
177
178 std::string logMessage =
Acore::StringFormat(
"Command: {} [Player: {} ({}) (Account: {}) X: {} Y: {} Z: {} Map: {} ({}) Area: {} ({}) Zone: {} ({}) Selected: {} ({})]",
180 session.GetAccountId(),
183 areaId, areaName, zoneId, zoneName,
186
187 LOG_GM(session.GetAccountId(), logMessage);
188}
LocaleConstant
Definition: Common.h:65
#define LOG_GM(accountId__,...)
Definition: Log.h:175
std::uint32_t uint32
Definition: Define.h:107
DBCStorage< AreaTableEntry > sAreaTableStore(AreaTableEntryfmt)
#define sWorld
Definition: World.h:444
std::string StringFormat(FormatString< Args... > fmt, Args &&... args)
Default AC string format function.
Definition: StringFormat.h:34
bool IsPlayerAccount(uint32 gmlevel)
Definition: AccountMgr.cpp:305
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
Map * FindMap() const
Definition: Object.h:532
std::string const & GetName() const
Definition: Object.h:458
uint32 GetAreaId() const
Definition: Object.cpp:3154
uint32 GetZoneId() const
Definition: Object.cpp:3146
Definition: ObjectGuid.h:118
std::string ToString() const
Definition: ObjectGuid.cpp:47
float GetPositionZ() const
Definition: Position.h:119
float GetPositionX() const
Definition: Position.h:117
float GetPositionY() const
Definition: Position.h:118
uint32 GetMapId() const
Definition: Position.h:276
Definition: Player.h:1064
Unit * GetSelectedUnit() const
Definition: Player.cpp:11538
ObjectGuid GetTarget() const
Definition: Unit.h:1756
const char * GetMapName() const
Definition: Map.cpp:2524
Definition: DBCStructure.h:518