mirror of
https://github.com/azerothcore/mod-solo-lfg
synced 2025-11-29 15:58:17 +08:00
clean
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
/*
|
||||
** Made by Traesh https://github.com/Traesh
|
||||
** AzerothCore 2019 http://www.azerothcore.org/
|
||||
** Made into a module by Micrah https://github.com/milestorme/
|
||||
*/
|
||||
|
||||
#include "Config.h"
|
||||
#include "World.h"
|
||||
#include "LFGMgr.h"
|
||||
#include "Chat.h"
|
||||
|
||||
class spp_lfg_solo : public PlayerScript
|
||||
{
|
||||
public:
|
||||
spp_lfg_solo() : PlayerScript("spp_lfg_solo") { }
|
||||
|
||||
void OnLogin(Player* player, bool /*loginFirst*/)
|
||||
{
|
||||
if (sConfigMgr->GetBoolDefault("LFG.SoloMode", true))
|
||||
{
|
||||
if (!sLFGMgr->IsTesting())
|
||||
{
|
||||
sLFGMgr->ToggleTesting();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_LFG_SoloModeScripts()
|
||||
{
|
||||
new spp_lfg_solo;
|
||||
}
|
||||
Reference in New Issue
Block a user