From 5b985afcb286813adf52702bb37fd9e83286ba28 Mon Sep 17 00:00:00 2001 From: Micrah <44911744+milestorme@users.noreply.github.com> Date: Sun, 9 Jun 2019 13:22:17 +1000 Subject: [PATCH 1/2] add per level announcer --- src/mod_congratsonlevel.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; From a034126731cf3a281329ac40e869b6ba30ac512c Mon Sep 17 00:00:00 2001 From: Micrah <44911744+milestorme@users.noreply.github.com> Date: Sun, 9 Jun 2019 13:24:05 +1000 Subject: [PATCH 2/2] update --- conf/mod_congratsonlevel.conf.dist | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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