|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
Public Member Functions | |
| ban_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 | HandleBanAccountByCharCommand (ChatHandler *handler, char const *args) |
| static bool | HandleBanAccountCommand (ChatHandler *handler, char const *args) |
| static bool | HandleBanCharacterCommand (ChatHandler *handler, char const *args) |
| static bool | HandleBanHelper (BanMode mode, char const *args, ChatHandler *handler) |
| static bool | HandleBanInfoAccountCommand (ChatHandler *handler, char const *args) |
| static bool | HandleBanInfoCharacterCommand (ChatHandler *handler, char const *args) |
| static bool | HandleBanInfoHelper (uint32 accountId, char const *accountName, ChatHandler *handler) |
| static bool | HandleBanInfoIPCommand (ChatHandler *handler, char const *args) |
| static bool | HandleBanIPCommand (ChatHandler *handler, char const *args) |
| static bool | HandleBanListAccountCommand (ChatHandler *handler, char const *args) |
| static bool | HandleBanListCharacterCommand (ChatHandler *handler, char const *args) |
| static bool | HandleBanListHelper (PreparedQueryResult result, ChatHandler *handler) |
| static bool | HandleBanListIPCommand (ChatHandler *handler, char const *args) |
| static bool | HandleUnBanAccountByCharCommand (ChatHandler *handler, char const *args) |
| static bool | HandleUnBanAccountCommand (ChatHandler *handler, char const *args) |
| static bool | HandleUnBanCharacterCommand (ChatHandler *handler, char const *args) |
| static bool | HandleUnBanHelper (BanMode mode, char const *args, ChatHandler *handler) |
| static bool | HandleUnBanIPCommand (ChatHandler *handler, char const *args) |
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 22 of file cs_ban.cpp.
|
inline |
Definition at line 25 of file cs_ban.cpp.
References CommandScript::CommandScript().
|
inlinevirtual |
Implements CommandScript.
Definition at line 27 of file cs_ban.cpp.
References HandleBanAccountByCharCommand(), HandleBanAccountCommand(), HandleBanCharacterCommand(), HandleBanInfoAccountCommand(), HandleBanInfoCharacterCommand(), HandleBanInfoIPCommand(), HandleBanIPCommand(), HandleBanListAccountCommand(), HandleBanListCharacterCommand(), HandleBanListIPCommand(), HandleUnBanAccountByCharCommand(), HandleUnBanAccountCommand(), HandleUnBanCharacterCommand(), HandleUnBanIPCommand(), OVERRIDE, rbac::RBAC_PERM_COMMAND_BAN, rbac::RBAC_PERM_COMMAND_BAN_ACCOUNT, rbac::RBAC_PERM_COMMAND_BAN_CHARACTER, rbac::RBAC_PERM_COMMAND_BAN_IP, rbac::RBAC_PERM_COMMAND_BAN_PLAYERACCOUNT, rbac::RBAC_PERM_COMMAND_BANINFO, rbac::RBAC_PERM_COMMAND_BANINFO_ACCOUNT, rbac::RBAC_PERM_COMMAND_BANINFO_CHARACTER, rbac::RBAC_PERM_COMMAND_BANINFO_IP, rbac::RBAC_PERM_COMMAND_BANLIST, rbac::RBAC_PERM_COMMAND_BANLIST_ACCOUNT, rbac::RBAC_PERM_COMMAND_BANLIST_CHARACTER, rbac::RBAC_PERM_COMMAND_BANLIST_IP, rbac::RBAC_PERM_COMMAND_UNBAN, rbac::RBAC_PERM_COMMAND_UNBAN_ACCOUNT, rbac::RBAC_PERM_COMMAND_UNBAN_CHARACTER, rbac::RBAC_PERM_COMMAND_UNBAN_IP, and rbac::RBAC_PERM_COMMAND_UNBAN_PLAYERACCOUNT.
|
inlinestatic |
Definition at line 119 of file cs_ban.cpp.
References BAN_CHARACTER, and HandleBanHelper().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 65 of file cs_ban.cpp.
References BAN_ACCOUNT, and HandleBanHelper().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 70 of file cs_ban.cpp.
References BAN_NOTFOUND, BAN_SUCCESS, WorldSession::GetPlayerName(), ChatHandler::GetSession(), LANG_BAN_NOTFOUND, LANG_BAN_YOUBANNED, LANG_BAN_YOUPERMBANNED, LANG_PLAYER_NOT_FOUND, normalizePlayerName(), ChatHandler::PSendSysMessage(), secsToTimeString(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), sWorld, and TimeStringToSecs().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 129 of file cs_ban.cpp.
References BAN_ACCOUNT, BAN_CHARACTER, BAN_IP, BAN_NOTFOUND, BAN_SUCCESS, BAN_SYNTAX_ERROR, WorldSession::GetPlayerName(), ChatHandler::GetSession(), IsIPAddress(), LANG_ACCOUNT_NOT_EXIST, LANG_BAN_NOTFOUND, LANG_BAN_YOUBANNED, LANG_BAN_YOUPERMBANNED, LANG_PLAYER_NOT_FOUND, normalizePlayerName(), AccountMgr::normalizeString(), ChatHandler::PSendSysMessage(), secsToTimeString(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), sWorld, and TimeStringToSecs().
Referenced by HandleBanAccountByCharCommand(), HandleBanAccountCommand(), and HandleBanIPCommand().
|
inlinestatic |
Definition at line 202 of file cs_ban.cpp.
References AccountMgr::GetId(), HandleBanInfoHelper(), LANG_ACCOUNT_NOT_EXIST, AccountMgr::normalizeString(), ChatHandler::PSendSysMessage(), and ChatHandler::SetSentErrorMessage().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 256 of file cs_ban.cpp.
References CHAR_SEL_BANINFO, CHAR_SEL_GUID_BY_NAME, CharacterDatabase, Field::GetCString(), Object::GetGUIDLow(), ChatHandler::GetSkyFireString(), Field::GetUInt32(), LANG_BANINFO_BANHISTORY, LANG_BANINFO_HISTORYENTRY, LANG_BANINFO_INFINITE, LANG_BANINFO_NO, LANG_BANINFO_NOCHARACTER, LANG_BANINFO_YES, LANG_CHAR_NOT_BANNED, ChatHandler::PSendSysMessage(), secsToTimeString(), PreparedStatement::setString(), PreparedStatement::setUInt32(), and sObjectAccessor.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 229 of file cs_ban.cpp.
References Field::GetCString(), ChatHandler::GetSkyFireString(), Field::GetUInt64(), LANG_BANINFO_BANHISTORY, LANG_BANINFO_HISTORYENTRY, LANG_BANINFO_INFINITE, LANG_BANINFO_NO, LANG_BANINFO_NOACCOUNTBAN, LANG_BANINFO_YES, LoginDatabase, ChatHandler::PSendSysMessage(), and secsToTimeString().
Referenced by HandleBanInfoAccountCommand().
|
inlinestatic |
Definition at line 308 of file cs_ban.cpp.
References Field::GetCString(), ChatHandler::GetSkyFireString(), Field::GetUInt64(), IsIPAddress(), LANG_BANINFO_INFINITE, LANG_BANINFO_IPENTRY, LANG_BANINFO_NEVER, LANG_BANINFO_NOIP, LoginDatabase, ChatHandler::PSendSysMessage(), and secsToTimeString().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 124 of file cs_ban.cpp.
References BAN_IP, and HandleBanHelper().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 340 of file cs_ban.cpp.
References HandleBanListHelper(), LANG_BANLIST_NOACCOUNT, LOGIN_DEL_EXPIRED_IP_BANS, LOGIN_SEL_ACCOUNT_BANNED_ALL, LOGIN_SEL_ACCOUNT_BANNED_BY_USERNAME, LoginDatabase, ChatHandler::PSendSysMessage(), and PreparedStatement::setString().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 449 of file cs_ban.cpp.
References CHAR_SEL_BANINFO_LIST, CHAR_SEL_BANNED_NAME, CHAR_SEL_GUID_BY_NAME_FILTER, CharacterDatabase, Field::GetCString(), ChatHandler::GetSession(), Field::GetString(), LANG_BANLIST_CHARACTERS, LANG_BANLIST_CHARACTERS_HEADER, LANG_BANLIST_MATCHINGCHARACTER, LANG_BANLIST_NOCHARACTER, Skyfire::LocalTime(), ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), PreparedStatement::setString(), and PreparedStatement::setUInt32().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 371 of file cs_ban.cpp.
References Field::GetCString(), AccountMgr::GetName(), ChatHandler::GetSession(), Field::GetString(), Field::GetUInt32(), LANG_BANLIST_ACCOUNTS, LANG_BANLIST_ACCOUNTS_HEADER, LANG_BANLIST_MATCHINGACCOUNT, Skyfire::LocalTime(), LoginDatabase, ChatHandler::PSendSysMessage(), and ChatHandler::SendSysMessage().
Referenced by HandleBanListAccountCommand().
|
inlinestatic |
Definition at line 534 of file cs_ban.cpp.
References Field::GetCString(), ChatHandler::GetSession(), LANG_BANLIST_IPS, LANG_BANLIST_IPS_HEADER, LANG_BANLIST_MATCHINGIP, LANG_BANLIST_NOIP, Skyfire::LocalTime(), LOGIN_DEL_EXPIRED_IP_BANS, LOGIN_SEL_IP_BANNED_ALL, LOGIN_SEL_IP_BANNED_BY_IP, LoginDatabase, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), and PreparedStatement::setString().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 643 of file cs_ban.cpp.
References BAN_CHARACTER, and HandleUnBanHelper().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 610 of file cs_ban.cpp.
References BAN_ACCOUNT, and HandleUnBanHelper().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 615 of file cs_ban.cpp.
References LANG_PLAYER_NOT_FOUND, normalizePlayerName(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), and sWorld.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 653 of file cs_ban.cpp.
References BAN_ACCOUNT, BAN_CHARACTER, BAN_IP, IsIPAddress(), LANG_ACCOUNT_NOT_EXIST, LANG_PLAYER_NOT_FOUND, LANG_UNBAN_ERROR, LANG_UNBAN_UNBANNED, normalizePlayerName(), AccountMgr::normalizeString(), ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), and sWorld.
Referenced by HandleUnBanAccountByCharCommand(), HandleUnBanAccountCommand(), and HandleUnBanIPCommand().
|
inlinestatic |
Definition at line 648 of file cs_ban.cpp.
References BAN_IP, and HandleUnBanHelper().
Referenced by GetCommands().