|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
Public Member Functions | |
| account_commandscript () | |
| std::vector< ChatCommand > | GetCommands () const OVERRIDE |
| Public Member Functions inherited from ScriptObject | |
| const std::string & | GetName () const |
| virtual bool | IsDatabaseBound () const |
Static Public Member Functions | |
| static bool | HandleAccountAddonCommand (ChatHandler *handler, char const *args) |
| static bool | HandleAccountBoostAddCommand (ChatHandler *handler, char const *args) |
| static bool | HandleAccountBoostDelCommand (ChatHandler *handler, char const *args) |
| static bool | HandleAccountCommand (ChatHandler *handler, char const *) |
| static bool | HandleAccountCreateCommand (ChatHandler *handler, char const *args) |
| Create an account. | |
| static bool | HandleAccountDeleteCommand (ChatHandler *handler, char const *args) |
| static bool | HandleAccountEmailCommand (ChatHandler *handler, char const *args) |
| static bool | HandleAccountLockCountryCommand (ChatHandler *handler, char const *args) |
| static bool | HandleAccountLockIpCommand (ChatHandler *handler, char const *args) |
| static bool | HandleAccountOnlineListCommand (ChatHandler *handler, char const *) |
| Display info on users currently in the realm. | |
| static bool | HandleAccountPasswordCommand (ChatHandler *handler, char const *args) |
| static bool | HandleAccountSetAddonCommand (ChatHandler *handler, char const *args) |
| Set/Unset the expansion level for an account. | |
| static bool | HandleAccountSetEmailCommand (ChatHandler *handler, char const *args) |
| Set normal email for account. | |
| static bool | HandleAccountSetGmLevelCommand (ChatHandler *handler, char const *args) |
| static bool | HandleAccountSetPasswordCommand (ChatHandler *handler, char const *args) |
| Set password for account. | |
| static bool | HandleAccountSetRegEmailCommand (ChatHandler *handler, char const *args) |
| Change registration email for account. | |
Additional Inherited Members | |
| Protected Member Functions inherited from CommandScript | |
| CommandScript (const char *name) | |
| Protected Member Functions inherited from ScriptObject | |
| ScriptObject (const char *name) | |
| virtual | ~ScriptObject () |
Definition at line 20 of file cs_account.cpp.
|
inline |
Definition at line 23 of file cs_account.cpp.
References CommandScript::CommandScript().
|
inlinevirtual |
Implements CommandScript.
Definition at line 25 of file cs_account.cpp.
References HandleAccountAddonCommand(), HandleAccountBoostAddCommand(), HandleAccountBoostDelCommand(), HandleAccountCreateCommand(), HandleAccountDeleteCommand(), HandleAccountEmailCommand(), HandleAccountLockCountryCommand(), HandleAccountLockIpCommand(), HandleAccountOnlineListCommand(), HandleAccountPasswordCommand(), HandleAccountSetAddonCommand(), HandleAccountSetEmailCommand(), HandleAccountSetGmLevelCommand(), HandleAccountSetPasswordCommand(), HandleAccountSetRegEmailCommand(), OVERRIDE, rbac::RBAC_PERM_COMMAND_ACCOUNT, rbac::RBAC_PERM_COMMAND_ACCOUNT_ADDON, rbac::RBAC_PERM_COMMAND_ACCOUNT_BOOST, rbac::RBAC_PERM_COMMAND_ACCOUNT_BOOST_ADD, rbac::RBAC_PERM_COMMAND_ACCOUNT_BOOST_DEL, rbac::RBAC_PERM_COMMAND_ACCOUNT_CREATE, rbac::RBAC_PERM_COMMAND_ACCOUNT_DELETE, rbac::RBAC_PERM_COMMAND_ACCOUNT_EMAIL, rbac::RBAC_PERM_COMMAND_ACCOUNT_LOCK, rbac::RBAC_PERM_COMMAND_ACCOUNT_LOCK_COUNTRY, rbac::RBAC_PERM_COMMAND_ACCOUNT_LOCK_IP, rbac::RBAC_PERM_COMMAND_ACCOUNT_ONLINE_LIST, rbac::RBAC_PERM_COMMAND_ACCOUNT_PASSWORD, rbac::RBAC_PERM_COMMAND_ACCOUNT_SET, rbac::RBAC_PERM_COMMAND_ACCOUNT_SET_ADDON, rbac::RBAC_PERM_COMMAND_ACCOUNT_SET_GMLEVEL, rbac::RBAC_PERM_COMMAND_ACCOUNT_SET_PASSWORD, rbac::RBAC_PERM_COMMAND_ACCOUNT_SET_SEC, rbac::RBAC_PERM_COMMAND_ACCOUNT_SET_SEC_EMAIL, and rbac::RBAC_PERM_COMMAND_ACCOUNT_SET_SEC_REGMAIL.
|
inlinestatic |
Definition at line 68 of file cs_account.cpp.
References CONFIG_EXPANSION, WorldSession::GetAccountId(), ChatHandler::GetSession(), LANG_ACCOUNT_ADDON, LANG_CMD_SYNTAX, LANG_IMPROPER_VALUE, LOGIN_UPD_EXPANSION, LoginDatabase, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), PreparedStatement::setUInt32(), PreparedStatement::setUInt8(), and sWorld.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 932 of file cs_account.cpp.
References AccountMgr::GetId(), LANG_ACCOUNT_NOT_EXIST, LANG_COMMAND_BOOST_ADD, LOGIN_SEL_ACCOUNT_BY_ID, LOGIN_UPD_ACCOUNT_BOOST, LoginDatabase, AccountMgr::normalizeString(), ChatHandler::PSendSysMessage(), PreparedStatement::setBool(), ChatHandler::SetSentErrorMessage(), and PreparedStatement::setUInt32().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 983 of file cs_account.cpp.
References AccountMgr::GetId(), LANG_ACCOUNT_NOT_EXIST, LANG_COMMAND_BOOST_DEL, LOGIN_SEL_ACCOUNT_BY_ID, LOGIN_UPD_ACCOUNT_BOOST, LoginDatabase, AccountMgr::normalizeString(), ChatHandler::PSendSysMessage(), PreparedStatement::setBool(), ChatHandler::SetSentErrorMessage(), and PreparedStatement::setUInt32().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 511 of file cs_account.cpp.
References CONFIG_ACC_PASSCHANGESEC, WorldSession::GetAccountId(), WorldSession::GetSecurity(), ChatHandler::GetSession(), ChatHandler::HasPermission(), LANG_ACCOUNT_LEVEL, LANG_ACCOUNT_SEC_TYPE, LANG_COMMAND_EMAIL_OUTPUT, LANG_RBAC_EMAIL_REQUIRED, LOGIN_GET_EMAIL_BY_ID, LoginDatabase, ChatHandler::PSendSysMessage(), PW_EMAIL, PW_NONE, PW_RBAC, rbac::RBAC_PERM_EMAIL_CONFIRM_FOR_PASS_CHANGE, rbac::RBAC_PERM_MAY_CHECK_OWN_EMAIL, PreparedStatement::setUInt32(), and sWorld.
|
inlinestatic |
Create an account.
Definition at line 101 of file cs_account.cpp.
References AOR_DB_INTERNAL_ERROR, AOR_NAME_ALREADY_EXIST, AOR_NAME_TOO_LONG, AOR_OK, WorldSession::GetAccountId(), Object::GetGUIDLow(), WorldObject::GetName(), WorldSession::GetPlayer(), WorldSession::GetRemoteAddress(), ChatHandler::GetSession(), LANG_ACCOUNT_ALREADY_EXIST, LANG_ACCOUNT_CREATED, LANG_ACCOUNT_NOT_CREATED, LANG_ACCOUNT_NOT_CREATED_SQL_ERROR, LANG_ACCOUNT_TOO_LONG, ChatHandler::PSendSysMessage(), sAccountMgr, ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), and SF_LOG_INFO.
Referenced by GetCommands().
|
inlinestatic |
Delete a user account and all associated characters in this realm
Commands not recommended call from chat, but support anyway can delete only for account with less security This is also reject self apply in fact
Definition at line 154 of file cs_account.cpp.
References AOR_DB_INTERNAL_ERROR, AOR_NAME_NOT_EXIST, AOR_OK, AccountMgr::DeleteAccount(), AccountMgr::GetId(), ChatHandler::HasLowerSecurityAccount(), LANG_ACCOUNT_DELETED, LANG_ACCOUNT_NOT_DELETED, LANG_ACCOUNT_NOT_DELETED_SQL_ERROR, LANG_ACCOUNT_NOT_EXIST, AccountMgr::normalizeString(), ChatHandler::PSendSysMessage(), and ChatHandler::SetSentErrorMessage().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 344 of file cs_account.cpp.
References AOR_EMAIL_TOO_LONG, AOR_OK, AccountMgr::ChangeEmail(), AccountMgr::CheckEmail(), AccountMgr::CheckPassword(), WorldSession::GetAccountId(), Object::GetGUIDLow(), WorldObject::GetName(), WorldSession::GetPlayer(), WorldSession::GetRemoteAddress(), ChatHandler::GetSession(), LANG_CMD_SYNTAX, LANG_COMMAND_EMAIL, LANG_COMMAND_NOTCHANGEEMAIL, LANG_COMMAND_WRONGEMAIL, LANG_COMMAND_WRONGOLDPASSWORD, LANG_EMAIL_TOO_LONG, LANG_NEW_EMAILS_NOT_MATCH, LANG_OLD_EMAIL_IS_NEW_EMAIL, ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), and SF_LOG_INFO.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 257 of file cs_account.cpp.
References EndianConvertReverse(), WorldSession::GetAccountId(), WorldSession::GetRemoteAddress(), ChatHandler::GetSession(), Field::GetString(), LANG_COMMAND_ACCLOCKLOCKED, LANG_COMMAND_ACCLOCKUNLOCKED, LANG_USE_BOL, LOGIN_SEL_LOGON_COUNTRY, LOGIN_UPD_ACCOUNT_LOCK_CONTRY, LoginDatabase, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), PreparedStatement::setString(), PreparedStatement::setUInt32(), SF_LOG_DEBUG, and Skyfire::Net::ToIPv4NetworkOrder().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 307 of file cs_account.cpp.
References WorldSession::GetAccountId(), ChatHandler::GetSession(), LANG_COMMAND_ACCLOCKLOCKED, LANG_COMMAND_ACCLOCKUNLOCKED, LANG_USE_BOL, LOGIN_UPD_ACCOUNT_LOCK, LoginDatabase, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), PreparedStatement::setBool(), ChatHandler::SetSentErrorMessage(), and PreparedStatement::setUInt32().
Referenced by GetCommands().
|
inlinestatic |
Display info on users currently in the realm.
Definition at line 210 of file cs_account.cpp.
References CHAR_SEL_CHARACTER_ONLINE, CharacterDatabase, Field::GetCString(), Field::GetString(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt8(), LANG_ACCOUNT_LIST_BAR, LANG_ACCOUNT_LIST_BAR_HEADER, LANG_ACCOUNT_LIST_EMPTY, LANG_ACCOUNT_LIST_ERROR, LANG_ACCOUNT_LIST_HEADER, LANG_ACCOUNT_LIST_LINE, LOGIN_SEL_ACCOUNT_INFO, LoginDatabase, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), and PreparedStatement::setUInt32().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 427 of file cs_account.cpp.
References AOR_OK, AOR_PASS_TOO_LONG, AccountMgr::ChangePassword(), AccountMgr::CheckEmail(), AccountMgr::CheckPassword(), CONFIG_ACC_PASSCHANGESEC, WorldSession::GetAccountId(), Object::GetGUIDLow(), WorldObject::GetName(), WorldSession::GetPlayer(), WorldSession::GetRemoteAddress(), ChatHandler::GetSession(), ChatHandler::HasPermission(), LANG_CMD_SYNTAX, LANG_COMMAND_NOTCHANGEPASSWORD, LANG_COMMAND_PASSWORD, LANG_COMMAND_WRONGEMAIL, LANG_COMMAND_WRONGOLDPASSWORD, LANG_NEW_PASSWORDS_NOT_MATCH, LANG_PASSWORD_TOO_LONG, PW_EMAIL, PW_RBAC, rbac::RBAC_PERM_EMAIL_CONFIRM_FOR_PASS_CHANGE, ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), SF_LOG_INFO, and sWorld.
Referenced by GetCommands().
|
inlinestatic |
Set/Unset the expansion level for an account.
Definition at line 551 of file cs_account.cpp.
References CONFIG_EXPANSION, WorldSession::GetAccountId(), AccountMgr::GetId(), AccountMgr::GetName(), ChatHandler::getSelectedPlayer(), ChatHandler::GetSession(), Player::GetSession(), ChatHandler::HasLowerSecurityAccount(), LANG_ACCOUNT_NOT_EXIST, LANG_ACCOUNT_SETADDON, LOGIN_UPD_EXPANSION, LoginDatabase, AccountMgr::normalizeString(), ChatHandler::PSendSysMessage(), ChatHandler::SetSentErrorMessage(), PreparedStatement::setUInt32(), PreparedStatement::setUInt8(), and sWorld.
Referenced by GetCommands().
|
inlinestatic |
Set normal email for account.
can set email only for target with less security This also restricts setting handler's own email.
Definition at line 786 of file cs_account.cpp.
References AOR_EMAIL_TOO_LONG, AOR_NAME_NOT_EXIST, AOR_OK, AccountMgr::ChangeEmail(), AccountMgr::GetId(), ChatHandler::HasLowerSecurityAccount(), LANG_ACCOUNT_NOT_EXIST, LANG_CMD_SYNTAX, LANG_COMMAND_EMAIL, LANG_COMMAND_NOTCHANGEEMAIL, LANG_EMAIL_TOO_LONG, LANG_NEW_EMAILS_NOT_MATCH, AccountMgr::normalizeString(), ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), and SF_LOG_INFO.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 614 of file cs_account.cpp.
References WorldSession::GetAccountId(), AccountMgr::GetId(), WorldSession::GetRBACData(), AccountMgr::GetSecurity(), ChatHandler::getSelectedPlayer(), ChatHandler::GetSession(), Player::GetSession(), AccountMgr::IsConsoleAccount(), LANG_ACCOUNT_NOT_EXIST, LANG_BAD_VALUE, LANG_CMD_SYNTAX, LANG_INVALID_REALMID, LANG_YOU_CHANGE_SECURITY, LANG_YOURS_SECURITY_IS_LOW, LOGIN_SEL_ACCOUNT_ACCESS_GMLEVEL_TEST, LoginDatabase, AccountMgr::normalizeString(), ChatHandler::PSendSysMessage(), sAccountMgr, SEC_CONSOLE, SEC_PLAYER, ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), PreparedStatement::setUInt32(), and PreparedStatement::setUInt8().
Referenced by GetCommands().
|
inlinestatic |
Set password for account.
can set password only for target with less security This also restricts setting handler's own password
Definition at line 717 of file cs_account.cpp.
References AOR_NAME_NOT_EXIST, AOR_OK, AOR_PASS_TOO_LONG, AccountMgr::ChangePassword(), AccountMgr::GetId(), ChatHandler::HasLowerSecurityAccount(), LANG_ACCOUNT_NOT_EXIST, LANG_CMD_SYNTAX, LANG_COMMAND_NOTCHANGEPASSWORD, LANG_COMMAND_PASSWORD, LANG_NEW_PASSWORDS_NOT_MATCH, LANG_PASSWORD_TOO_LONG, AccountMgr::normalizeString(), ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), and ChatHandler::SetSentErrorMessage().
Referenced by GetCommands().
|
inlinestatic |
Change registration email for account.
can set email only for target with less security This also restricts setting handler's own email.
Definition at line 857 of file cs_account.cpp.
References AOR_EMAIL_TOO_LONG, AOR_NAME_NOT_EXIST, AOR_OK, AccountMgr::ChangeRegEmail(), AccountMgr::GetId(), ChatHandler::GetSession(), ChatHandler::HasLowerSecurityAccount(), LANG_ACCOUNT_NOT_EXIST, LANG_CMD_SYNTAX, LANG_COMMAND_EMAIL, LANG_COMMAND_NOTCHANGEEMAIL, LANG_EMAIL_TOO_LONG, LANG_NEW_EMAILS_NOT_MATCH, AccountMgr::normalizeString(), ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), and SF_LOG_INFO.
Referenced by GetCommands().