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

@@ -3,7 +3,7 @@
### This is a module for [AzerothCore](http://www.azerothcore.org)
#### Features:
- It disables the Hearthstone cooldown
- It resets the Hearthstone cooldown immediatly
### This module currently requires:
- AzerothCore v4.0.0+
@@ -11,14 +11,13 @@
### How to install
1. Simply place the module under the `modules` folder of your AzerothCore source folder.
2. Re-run cmake and launch a clean build of AzerothCore
3. that's all
### (Optional) Edit module configuration
You can turn the module **on** and **off**, default it is **on**.
If you want to disable it, go to your server configuration folder (e.g. **etc**), copy `no-hearthstone-cooldown.conf.dist` to `no-hearthstone-cooldown.conf` and change
`NoHearthstoneCooldown.Enable = 1`
to
`NoHearthstoneCooldown.Enable = 0`
- You can turn the module **on** and **off**, default it is **on**
- You can also turn the announcement of the module on player-login **on** and **off**, default it is **on**
- If you want change the settings, go to your server configuration folder (e.g. **etc**), copy `mod_no_hearthstone_cooldown.conf.dist` to `mod_no_hearthstone_cooldown.conf` and edit the settings
## Credits
* BytesGalore
* [BytesGalore](https://github.com/BytesGalore) (author of the module)
* AzerothCore: [repository](https://github.com/azerothcore) - [website](http://azerothcore.org/) - [discord chat community](https://discord.gg/PaqQRkd)