diff --git a/conf/mod_congratsonlevel.conf.dist b/conf/mod_congratsonlevel.conf.dist index 0c24e50..61bb649 100644 --- a/conf/mod_congratsonlevel.conf.dist +++ b/conf/mod_congratsonlevel.conf.dist @@ -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 @@ -80,4 +83,4 @@ Congrats.L702 = 54212 Congrats.L80M = 100 Congrats.L80S = 20217 Congrats.L801 = 9361 -Congrats.L802 = 40110 \ No newline at end of file +Congrats.L802 = 40110 diff --git a/src/mod_congratsonlevel.cpp b/src/mod_congratsonlevel.cpp index 24c5a45..caf6350 100644 --- a/src/mod_congratsonlevel.cpp +++ b/src/mod_congratsonlevel.cpp @@ -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;