mod: renamed config file

fix: only apply cooldown if mod is enabled
mod: refactored code
mod: read enabled state only when the world-config is loaded
add: config option to switch mod announcement
This commit is contained in:
BytesGalore
2021-10-06 20:10:13 +02:00
parent 6500b8cc87
commit e9978b92b9
3 changed files with 48 additions and 26 deletions

View File

@@ -0,0 +1,24 @@
#
# Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3
#
[worldserver]
#####################################################
# No Hearthstone cooldown module configuration
#####################################################
#
# NoHearthstoneCooldownConfig.Enable
# Description: Enable to skip the Hearthstone cooldown
# Default: 1 - Enabled
# 0 - Disabled
#
# NoHearthstoneCooldownConfig.Announce
# Description: Inform the player about the loaded module
# Default: 1 - Enabled
# 0 - Disabled
#
NoHearthstoneCooldown.Enable = 1
NoHearthstoneCooldown.Announce = 1