mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-14 09:29:09 +00:00
Fix: Updated to work with newer commits of AzerothCore
This commit is contained in:
@@ -20,24 +20,26 @@
|
||||
#include "RandomPlayerbotMgr.h"
|
||||
#include "ScriptMgr.h"
|
||||
|
||||
using namespace Acore::ChatCommands;
|
||||
|
||||
class playerbots_commandscript : public CommandScript
|
||||
{
|
||||
public:
|
||||
playerbots_commandscript() : CommandScript("playerbots_commandscript") { }
|
||||
|
||||
std::vector<ChatCommand> GetCommands() const override
|
||||
ChatCommandTable GetCommands() const override
|
||||
{
|
||||
static std::vector<ChatCommand> playerbotsCommandTable =
|
||||
static ChatCommandTable playerbotsCommandTable =
|
||||
{
|
||||
{ "bot", SEC_PLAYER, false, &HandlePlayerbotCommand, nullptr },
|
||||
{ "gtask", SEC_GAMEMASTER, true, &HandleGuildTaskCommand, nullptr },
|
||||
{ "pmon", SEC_GAMEMASTER, true, &HandlePerfMonCommand, nullptr },
|
||||
{ "rndbot", SEC_GAMEMASTER, true, &HandleRandomPlayerbotCommand, nullptr }
|
||||
{ "bot", HandlePlayerbotCommand, SEC_PLAYER, Console::No },
|
||||
{ "gtask", HandleGuildTaskCommand, SEC_GAMEMASTER, Console::Yes },
|
||||
{ "pmon", HandlePerfMonCommand, SEC_GAMEMASTER, Console::Yes },
|
||||
{ "rndbot", HandleRandomPlayerbotCommand, SEC_GAMEMASTER, Console::Yes }
|
||||
};
|
||||
|
||||
static std::vector<ChatCommand> commandTable =
|
||||
static ChatCommandTable commandTable =
|
||||
{
|
||||
{ "playerbots", SEC_PLAYER, true, nullptr, "", playerbotsCommandTable },
|
||||
{ "playerbots", playerbotsCommandTable },
|
||||
};
|
||||
|
||||
return commandTable;
|
||||
|
||||
Reference in New Issue
Block a user