Update mod_congratsonlevel.cpp

This commit is contained in:
Vitaliy 2021-03-02 13:16:56 +03:00 committed by GitHub
parent 237793f4ae
commit 78e6452eb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,25 +65,6 @@ config file for quick modifications.
#include "Player.h" #include "Player.h"
#include "Chat.h" #include "Chat.h"
class CongratsConfig : public WorldScript
{
public:
CongratsConfig() : WorldScript("CongratsConfig") { }
void OnBeforeConfigLoad(bool reload) override
{
if (!reload) {
std::string conf_path = _CONF_DIR;
std::string cfg_file = conf_path + "/mod_congratsonlevel.conf";
std::string cfg_def_file = cfg_file + ".dist";
sConfigMgr->LoadMore(cfg_def_file.c_str());
sConfigMgr->LoadMore(cfg_file.c_str());
}
}
};
class CongratsAnnounce : public PlayerScript class CongratsAnnounce : public PlayerScript
{ {
@ -293,7 +274,6 @@ public:
void AddCongratsOnLevelScripts() void AddCongratsOnLevelScripts()
{ {
new CongratsConfig();
new CongratsAnnounce(); new CongratsAnnounce();
new CongratsOnLevel(); new CongratsOnLevel();
} }