mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-01 10:03:47 +00:00
Rewrite(Core/BanManager): Rewrite Ban system (#1576)
* Added ban manager * Delete ban functions in world class * Separate ban account to (ban account, ban ip, ban character) * Support world announce
This commit is contained in:
@@ -24,6 +24,7 @@ EndContentData */
|
||||
#include "AccountMgr.h"
|
||||
#include "SpellInfo.h"
|
||||
#include "Spell.h"
|
||||
#include "BanManager.h"
|
||||
|
||||
/*###
|
||||
## npcs_rutgar_and_frankal
|
||||
@@ -1263,7 +1264,7 @@ class go_wind_stone : public GameObjectScript
|
||||
{
|
||||
std::string accountName;
|
||||
AccountMgr::GetName(player->GetSession()->GetAccountId(), accountName);
|
||||
sWorld->BanAccount(BAN_ACCOUNT, accountName, "0s", "Wind Stone exploit", "Server");
|
||||
sBan->BanAccount(accountName, "0s", "Wind Stone exploit", "Server");
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user