mirror of
https://github.com/webluke/mod-grownup.git
synced 2026-01-13 01:08:39 +00:00
option to show grown message to reduce message spam
This commit is contained in:
@@ -29,3 +29,12 @@ GrownUp.LoginCheck = 1
|
|||||||
#
|
#
|
||||||
|
|
||||||
GrownUp.Announce = 1
|
GrownUp.Announce = 1
|
||||||
|
|
||||||
|
#
|
||||||
|
# GrownUp.GrownAnnounce
|
||||||
|
# Description: Announce each level.
|
||||||
|
# Default: 0 - Disabled
|
||||||
|
# 1 - Enabled
|
||||||
|
#
|
||||||
|
|
||||||
|
GrownUp.GrownAnnounce = 0
|
||||||
@@ -62,8 +62,11 @@ public:
|
|||||||
newScale = 1.0f;
|
newScale = 1.0f;
|
||||||
|
|
||||||
player->SetObjectScale(newScale);
|
player->SetObjectScale(newScale);
|
||||||
ChatHandler(player->GetSession())
|
if (sConfigMgr->GetOption<bool>("GrownUp.GrownAnnounce", true))
|
||||||
.PSendSysMessage("Your adventure has grown!"); // Message when leveling up may try and add the % back later.
|
{
|
||||||
|
ChatHandler(player->GetSession())
|
||||||
|
.PSendSysMessage("Your adventure has grown!"); // Message when leveling up may try and add the % back later.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user