44 {
46
49
50 if (type == "bg")
51 {
54 }
55 else if (type == "arena")
56 {
59 }
60 else if (type == "autobroadcast")
61 {
63 {
66 }
67
70 }
71
74 return true;
75 }
@ LANG_CMD_SETTINGS_ANNOUNCER_OFF
Definition: Language.h:1138
@ LANG_CMD_AUTOBROADCAST_LVL_ERROR
Definition: Language.h:1136
@ LANG_CMD_SETTINGS_ANNOUNCER_ON
Definition: Language.h:1137
@ CONFIG_AUTOBROADCAST_MIN_LEVEL_DISABLE
Definition: IWorld.h:358
@ ANNOUNCER_FLAG_DISABLE_AUTOBROADCAST
Definition: PlayerSettings.h:35
@ ANNOUNCER_FLAG_DISABLE_ARENA_QUEUE
Definition: PlayerSettings.h:34
@ ANNOUNCER_FLAG_DISABLE_BG_QUEUE
Definition: PlayerSettings.h:33
const std::string AzerothcorePSSource
Definition: PlayerSettings.h:23
@ SETTING_ANNOUNCER_FLAGS
Definition: PlayerSettings.h:27
#define sWorld
Definition: World.h:443
void PSendSysMessage(std::string_view str, bool escapeCharacters=false)
Definition: Chat.cpp:210
void SetSentErrorMessage(bool val)
Definition: Chat.h:238
Player * GetPlayer() const
Definition: Chat.cpp:35
Definition: Player.h:1081
void UpdatePlayerSetting(std::string source, uint8 index, uint32 value)
Definition: PlayerSettings.cpp:115
PlayerSetting GetPlayerSetting(std::string source, uint8 index)
Definition: PlayerSettings.cpp:70
Definition: PlayerSettings.h:39
void AddFlag(uint32 flag)
Definition: PlayerSettings.h:44
void RemoveFlag(uint32 flag)
Definition: PlayerSettings.h:45
uint32 value
Definition: PlayerSettings.h:40
uint8 GetLevel() const
Definition: Unit.h:1024