AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Public Member Functions | |
guild_commandscript () | |
ChatCommandTable | GetCommands () const override |
virtual std::vector< Acore::ChatCommands::ChatCommandBuilder > | GetCommands () const =0 |
Public Member Functions inherited from ScriptObject | |
virtual bool | IsDatabaseBound () const |
virtual bool | isAfterLoadScript () const |
virtual void | checkValidity () |
const std::string & | GetName () const |
Static Public Member Functions | |
static bool | HandleGuildCreateCommand (ChatHandler *handler, char const *args) |
GM command level 3 - Create a guild. | |
static bool | HandleGuildDeleteCommand (ChatHandler *handler, char const *args) |
static bool | HandleGuildInviteCommand (ChatHandler *handler, char const *args) |
static bool | HandleGuildUninviteCommand (ChatHandler *handler, char const *args) |
static bool | HandleGuildRankCommand (ChatHandler *handler, Optional< PlayerIdentifier > player, uint8 rank) |
static bool | HandleGuildRenameCommand (ChatHandler *handler, char const *_args) |
static bool | HandleGuildInfoCommand (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 ()=default |
|
inline |
|
inlineoverridevirtual |
Implements CommandScript.
References HandleGuildCreateCommand(), HandleGuildDeleteCommand(), HandleGuildInfoCommand(), HandleGuildInviteCommand(), HandleGuildRankCommand(), HandleGuildRenameCommand(), HandleGuildUninviteCommand(), and SEC_GAMEMASTER.
|
inlinestatic |
GM command level 3 - Create a guild.
This command allows a GM (level 3) to create a guild.
The "args" parameter contains the name of the guild leader and then the name of the guild.
References Guild::Create(), ChatHandler::extractPlayerTarget(), ChatHandler::extractQuotedArg(), Player::GetGuildId(), LANG_BAD_VALUE, LANG_GUILD_NOT_CREATED, LANG_GUILD_RENAME_ALREADY_EXISTS, LANG_PLAYER_IN_GUILD, ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), sGuildMgr, and sObjectMgr.
Referenced by GetCommands().
|
inlinestatic |
References Guild::Disband(), ChatHandler::extractQuotedArg(), and sGuildMgr.
Referenced by GetCommands().
|
inlinestatic |
References ObjectGuid::GetCounter(), Guild::GetCreatedDate(), Guild::GetId(), Guild::GetInfo(), Guild::GetLeaderGUID(), Guild::GetMemberCount(), Guild::GetMOTD(), Guild::GetName(), ChatHandler::getSelectedPlayerOrSelf(), Guild::GetTotalBankMoney(), isNumeric(), LANG_GUILD_INFO_BANK_GOLD, LANG_GUILD_INFO_CREATION_DATE, LANG_GUILD_INFO_EXTRA_INFO, LANG_GUILD_INFO_GUILD_MASTER, LANG_GUILD_INFO_MEMBER_COUNT, LANG_GUILD_INFO_MOTD, LANG_GUILD_INFO_NAME, ChatHandler::PSendSysMessage(), sCharacterCache, sGuildMgr, and Acore::Time::TimeToHumanReadable().
Referenced by GetCommands().
|
inlinestatic |
References Guild::AddMember(), ChatHandler::extractPlayerTarget(), ChatHandler::extractQuotedArg(), and sGuildMgr.
Referenced by GetCommands().
|
inlinestatic |
References Guild::ChangeMemberRank(), Acore::ChatCommands::PlayerIdentifier::FromTargetOrSelf(), sCharacterCache, and sGuildMgr.
Referenced by GetCommands().
|
inlinestatic |
References ChatHandler::extractQuotedArg(), LANG_BAD_VALUE, LANG_COMMAND_COULDNOTFIND, LANG_GUILD_RENAME_ALREADY_EXISTS, LANG_GUILD_RENAME_DONE, LANG_INSERT_GUILD_NAME, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), Guild::SetName(), ChatHandler::SetSentErrorMessage(), and sGuildMgr.
Referenced by GetCommands().
|
inlinestatic |
References Guild::DeleteMember(), ChatHandler::extractPlayerTarget(), Player::GetGuildId(), sCharacterCache, and sGuildMgr.
Referenced by GetCommands().