mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 21:56:22 +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:
@@ -10,6 +10,7 @@
|
||||
#include "PassiveAI.h"
|
||||
#include "Player.h"
|
||||
#include "WorldSession.h"
|
||||
#include "BanManager.h"
|
||||
|
||||
enum VezaxSpellData
|
||||
{
|
||||
@@ -682,7 +683,7 @@ public:
|
||||
{
|
||||
std::string accountName;
|
||||
AccountMgr::GetName(plr->GetSession()->GetAccountId(), accountName);
|
||||
sWorld->BanAccount(BAN_ACCOUNT, accountName, "0s", "Tele hack", "Server");
|
||||
sBan->BanAccount(accountName, "0s", "Tele hack", "Server");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user