mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
feat(Core/Player): Implement helper to send system messages to players (#15364)
This commit is contained in:
@@ -16220,3 +16220,8 @@ std::string Player::GetDebugInfo() const
|
||||
sstr << Unit::GetDebugInfo();
|
||||
return sstr.str();
|
||||
}
|
||||
|
||||
void Player::SendSystemMessage(std::string_view msg, bool escapeCharacters)
|
||||
{
|
||||
ChatHandler(GetSession()).SendSysMessage(msg, escapeCharacters);
|
||||
}
|
||||
|
||||
@@ -2575,6 +2575,8 @@ public:
|
||||
[[nodiscard]] PlayerSetting GetPlayerSetting(std::string source, uint8 index);
|
||||
void UpdatePlayerSetting(std::string source, uint8 index, uint32 value);
|
||||
|
||||
void SendSystemMessage(std::string_view msg, bool escapeCharacters = false);
|
||||
|
||||
std::string GetDebugInfo() const override;
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user