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:
Kargatum
2019-03-25 10:00:17 +07:00
committed by GitHub
parent a9c4c14ef2
commit 1f4f318705
12 changed files with 473 additions and 220 deletions

View File

@@ -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;
}