![]() |
TrinityCore
|
Inheritance diagram for battlenet_account_commandscript:Public Member Functions | |
| battlenet_account_commandscript () | |
| std::span< ChatCommandBuilder const > | GetCommands () const override |
Public Member Functions inherited from CommandScript | |
| ~CommandScript () | |
Public Member Functions inherited from ScriptObject | |
| ScriptObject (ScriptObject const &right)=delete | |
| ScriptObject (ScriptObject &&right)=delete | |
| ScriptObject & | operator= (ScriptObject const &right)=delete |
| ScriptObject & | operator= (ScriptObject &&right)=delete |
| std::string const & | GetName () const |
Static Public Member Functions | |
| static bool | HandleAccountCreateCommand (ChatHandler *handler, std::string const &accountName, std::string const &password, Optional< bool > createGameAccount) |
| Create an account. | |
| static bool | HandleAccountLockCountryCommand (ChatHandler *handler, bool state) |
| static bool | HandleAccountLockIpCommand (ChatHandler *handler, bool state) |
| static bool | HandleAccountPasswordCommand (ChatHandler *handler, std::string const &oldPassword, std::string const &newPassword, std::string const &passwordConfirmation) |
| static bool | HandleAccountSetPasswordCommand (ChatHandler *handler, std::string accountName, std::string const &password, std::string const &passwordConfirmation) |
| Set password for account. | |
| static bool | HandleAccountLinkCommand (ChatHandler *handler, std::string const &bnetAccountName, std::string const &gameAccountName) |
| static bool | HandleAccountUnlinkCommand (ChatHandler *handler, std::string const &gameAccountName) |
| static bool | HandleGameAccountCreateCommand (ChatHandler *handler, std::string const &bnetAccountName) |
| static bool | HandleListGameAccountsCommand (ChatHandler *handler, std::string const &battlenetAccountName) |
Additional Inherited Members | |
Protected Member Functions inherited from CommandScript | |
| CommandScript (char const *name) noexcept | |
Protected Member Functions inherited from ScriptObject | |
| ScriptObject (char const *name) noexcept | |
| virtual | ~ScriptObject () |
Definition at line 34 of file cs_battlenet_account.cpp.
|
inline |
Definition at line 37 of file cs_battlenet_account.cpp.
|
inlineoverridevirtual |
Implements CommandScript.
Definition at line 39 of file cs_battlenet_account.cpp.
References HandleAccountCreateCommand(), HandleAccountLinkCommand(), HandleAccountLockCountryCommand(), HandleAccountLockIpCommand(), HandleAccountPasswordCommand(), HandleAccountSetPasswordCommand(), HandleAccountUnlinkCommand(), HandleGameAccountCreateCommand(), HandleListGameAccountsCommand(), rbac::RBAC_PERM_COMMAND_BNET_ACCOUNT_CREATE, rbac::RBAC_PERM_COMMAND_BNET_ACCOUNT_CREATE_GAME, rbac::RBAC_PERM_COMMAND_BNET_ACCOUNT_LINK, rbac::RBAC_PERM_COMMAND_BNET_ACCOUNT_LIST_GAME_ACCOUTNS, rbac::RBAC_PERM_COMMAND_BNET_ACCOUNT_LOCK_COUNTRY, rbac::RBAC_PERM_COMMAND_BNET_ACCOUNT_LOCK_IP, rbac::RBAC_PERM_COMMAND_BNET_ACCOUNT_PASSWORD, rbac::RBAC_PERM_COMMAND_BNET_ACCOUNT_SET_PASSWORD, and rbac::RBAC_PERM_COMMAND_BNET_ACCOUNT_UNLINK.
|
inlinestatic |
Create an account.
Definition at line 70 of file cs_battlenet_account.cpp.
References AOR_NAME_ALREADY_EXIST, AOR_NAME_TOO_LONG, AOR_OK, AOR_PASS_TOO_LONG, Battlenet::AccountMgr::CreateBattlenetAccount(), WorldSession::GetAccountId(), BaseEntity::GetGUID(), WorldObject::GetName(), WorldSession::GetPlayer(), WorldSession::GetRemoteAddress(), ChatHandler::GetSession(), LANG_ACCOUNT_ALREADY_EXIST, LANG_ACCOUNT_CREATED_BNET, LANG_ACCOUNT_CREATED_BNET_WITH_GAME, LANG_ACCOUNT_INVALID_BNET_NAME, LANG_ACCOUNT_NAME_TOO_LONG, LANG_ACCOUNT_PASS_TOO_LONG, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), TC_LOG_INFO, and ObjectGuid::ToString().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 258 of file cs_battlenet_account.cpp.
References AOR_ACCOUNT_BAD_LINK, AOR_NAME_NOT_EXIST, AOR_OK, LANG_ACCOUNT_ALREADY_LINKED, LANG_ACCOUNT_BNET_LINKED, LANG_ACCOUNT_OR_BNET_DOES_NOT_EXIST, Battlenet::AccountMgr::LinkWithGameAccount(), ChatHandler::PSendSysMessage(), and ChatHandler::SetSentErrorMessage().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 118 of file cs_battlenet_account.cpp.
References WorldSession::GetBattlenetAccountId(), WorldSession::GetRemoteAddress(), ChatHandler::GetSession(), LANG_COMMAND_ACCLOCKLOCKED, LANG_COMMAND_ACCLOCKUNLOCKED, LOGIN_UPD_BNET_ACCOUNT_LOCK_CONTRY, LoginDatabase, ChatHandler::PSendSysMessage(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), sIPLocation, and TC_LOG_DEBUG.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 148 of file cs_battlenet_account.cpp.
References WorldSession::GetBattlenetAccountId(), ChatHandler::GetSession(), LANG_COMMAND_ACCLOCKLOCKED, LANG_COMMAND_ACCLOCKUNLOCKED, LOGIN_UPD_BNET_ACCOUNT_LOCK, LoginDatabase, ChatHandler::PSendSysMessage(), PreparedStatementBase::setBool(), and PreparedStatementBase::setUInt32().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 169 of file cs_battlenet_account.cpp.
References AOR_OK, AOR_PASS_TOO_LONG, Battlenet::AccountMgr::ChangePassword(), Battlenet::AccountMgr::CheckPassword(), WorldSession::GetBattlenetAccountId(), BaseEntity::GetGUID(), WorldObject::GetName(), WorldSession::GetPlayer(), WorldSession::GetRemoteAddress(), ChatHandler::GetSession(), LANG_COMMAND_NOTCHANGEPASSWORD, LANG_COMMAND_PASSWORD, LANG_COMMAND_WRONGOLDPASSWORD, LANG_NEW_PASSWORDS_NOT_MATCH, LANG_PASSWORD_TOO_LONG, ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), TC_LOG_INFO, and ObjectGuid::ToString().
Referenced by GetCommands().
|
inlinestatic |
Set password for account.
Definition at line 214 of file cs_battlenet_account.cpp.
References AOR_NAME_NOT_EXIST, AOR_OK, AOR_PASS_TOO_LONG, Battlenet::AccountMgr::ChangePassword(), Battlenet::AccountMgr::GetId(), LANG_ACCOUNT_NOT_EXIST, LANG_COMMAND_PASSWORD, LANG_NEW_PASSWORDS_NOT_MATCH, LANG_PASSWORD_TOO_LONG, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), and Utf8ToUpperOnlyLatin().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 280 of file cs_battlenet_account.cpp.
References AOR_ACCOUNT_BAD_LINK, AOR_NAME_NOT_EXIST, AOR_OK, LANG_ACCOUNT_BNET_NOT_LINKED, LANG_ACCOUNT_BNET_UNLINKED, LANG_ACCOUNT_NOT_EXIST, ChatHandler::PSendSysMessage(), ChatHandler::SetSentErrorMessage(), and Battlenet::AccountMgr::UnlinkGameAccount().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 302 of file cs_battlenet_account.cpp.
References AOR_DB_INTERNAL_ERROR, AOR_NAME_ALREADY_EXIST, AOR_NAME_TOO_LONG, AOR_OK, AOR_PASS_TOO_LONG, ByteArrayToHexStr(), WorldSession::GetAccountId(), BaseEntity::GetGUID(), Battlenet::AccountMgr::GetId(), Battlenet::AccountMgr::GetMaxIndex(), WorldObject::GetName(), WorldSession::GetPlayer(), WorldSession::GetRemoteAddress(), ChatHandler::GetSession(), LANG_ACCOUNT_ALREADY_EXIST, LANG_ACCOUNT_CREATED, LANG_ACCOUNT_NAME_TOO_LONG, LANG_ACCOUNT_NOT_CREATED, LANG_ACCOUNT_NOT_CREATED_SQL_ERROR, LANG_ACCOUNT_NOT_EXIST, LANG_ACCOUNT_PASS_TOO_LONG, ChatHandler::PSendSysMessage(), sAccountMgr, ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), TC_LOG_INFO, and ObjectGuid::ToString().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 355 of file cs_battlenet_account.cpp.
References Field::GetCString(), LANG_ACCOUNT_BNET_LIST_HEADER, LANG_ACCOUNT_BNET_LIST_NO_ACCOUNTS, LOGIN_SEL_BNET_GAME_ACCOUNT_LIST_SMALL, LoginDatabase, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), and PreparedStatementBase::setString().
Referenced by GetCommands().