diff --git a/conf/mod_grownup.conf.dist b/conf/mod_grownup.conf.dist index 4313fb4..3bffc50 100644 --- a/conf/mod_grownup.conf.dist +++ b/conf/mod_grownup.conf.dist @@ -29,3 +29,12 @@ GrownUp.LoginCheck = 1 # GrownUp.Announce = 1 + +# +# GrownUp.GrownAnnounce +# Description: Announce each level. +# Default: 0 - Disabled +# 1 - Enabled +# + +GrownUp.GrownAnnounce = 0 \ No newline at end of file diff --git a/src/GrownUp.cpp b/src/GrownUp.cpp index c07df90..97803d4 100644 --- a/src/GrownUp.cpp +++ b/src/GrownUp.cpp @@ -62,8 +62,11 @@ public: newScale = 1.0f; player->SetObjectScale(newScale); - ChatHandler(player->GetSession()) - .PSendSysMessage("Your adventure has grown!"); // Message when leveling up may try and add the % back later. + if (sConfigMgr->GetOption("GrownUp.GrownAnnounce", true)) + { + ChatHandler(player->GetSession()) + .PSendSysMessage("Your adventure has grown!"); // Message when leveling up may try and add the % back later. + } } };