Core/Loot: implemented a custom server config setting to enable or disable AE loot

Port From (https://github.com/TrinityCore/TrinityCore/commit/ccc083593af16f505263f889712f46f9382bb588)
This commit is contained in:
hondacrx
2024-02-06 15:32:46 -05:00
parent d1ad9f662e
commit a1a78bf8b0
4 changed files with 18 additions and 2 deletions
+3
View File
@@ -1011,6 +1011,9 @@ namespace Game
// Specifies if IP addresses can be logged to the database
Values[WorldCfg.AllowLogginIpAddressesInDatabase] = GetDefaultValue("AllowLoggingIPAddressesInDatabase", true);
// Enable AE loot
Values[WorldCfg.EnableAeLoot] = GetDefaultValue("Loot.EnableAELoot", true);
// call ScriptMgr if we're reloading the configuration
if (reload)
Global.ScriptMgr.OnConfigLoad(reload);