Merge pull request #7 from milestorme/master

Added new config option disable/enable per level up announcer this closes https://github.com/azerothcore/mod-congrats-on-level/issues/4
This commit is contained in:
Micrah 2019-06-10 06:10:25 +10:00 committed by GitHub
commit de8685a119
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -8,6 +8,9 @@
Congrats.Enable = 1
# Enable the Per level congratulations announcement (1: true | 0: false)
CongratsPerLevel.Enable = 1
# Announce the module when the player logs in?
Congrats.Announce = 1

View file

@ -260,6 +260,8 @@ public:
}
default:
// If enabled...
if (sConfigMgr->GetBoolDefault("CongratsPerLevel.Enable", true))
{
// Issue a server notification for the player on level up.
std::ostringstream ss;