mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 10:00:28 +00:00
feat(Core/Chat): new argument parsing and unify chat hyperlink parsing (#6243)
This commit is contained in:
@@ -20,14 +20,20 @@
|
||||
#include "Player.h"
|
||||
#include "ScriptMgr.h"
|
||||
|
||||
#if AC_COMPILER == AC_COMPILER_GNU
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif
|
||||
|
||||
using namespace Acore::ChatCommands;
|
||||
|
||||
class cheat_commandscript : public CommandScript
|
||||
{
|
||||
public:
|
||||
cheat_commandscript() : CommandScript("cheat_commandscript") { }
|
||||
|
||||
std::vector<ChatCommand> GetCommands() const override
|
||||
ChatCommandTable GetCommands() const override
|
||||
{
|
||||
static std::vector<ChatCommand> cheatCommandTable =
|
||||
static ChatCommandTable cheatCommandTable =
|
||||
{
|
||||
{ "god", SEC_GAMEMASTER, false, &HandleGodModeCheatCommand, "" },
|
||||
{ "casttime", SEC_GAMEMASTER, false, &HandleCasttimeCheatCommand, "" },
|
||||
@@ -39,7 +45,7 @@ public:
|
||||
{ "explore", SEC_GAMEMASTER, false, &HandleExploreCheatCommand, "" },
|
||||
};
|
||||
|
||||
static std::vector<ChatCommand> commandTable =
|
||||
static ChatCommandTable commandTable =
|
||||
{
|
||||
{ "cheat", SEC_GAMEMASTER, false, nullptr, "", cheatCommandTable },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user