78 char* entryStr = strtok((
char*)args,
" ");
79 if (!entryStr || !atoi(entryStr))
82 char* flagsStr = strtok(
NULL,
" ");
85 char* commentStr = strtok(
NULL,
"");
89 std::string disableComment = commentStr;
92 std::string disableTypeStr =
"";
104 disableTypeStr =
"spell";
115 disableTypeStr =
"quest";
126 disableTypeStr =
"map";
137 disableTypeStr =
"battleground";
148 disableTypeStr =
"achievement criteria";
159 disableTypeStr =
"outdoorpvp";
170 disableTypeStr =
"vmap";
181 disableTypeStr =
"mmap";
195 handler->
PSendSysMessage(
"This %s (Id: %u) is already disabled.", disableTypeStr.c_str(), entry);
207 handler->
PSendSysMessage(
"Add Disabled %s (Id: %u) for reason %s", disableTypeStr.c_str(), entry, disableComment.c_str());
void SetSentErrorMessage(bool val)
Definition: Chat.h:138
void Execute(const char *sql)
Definition: DatabaseWorkerPool.h:87
std::shared_ptr< PreparedResultSet > PreparedQueryResult
Definition: QueryResult.h:107
Definition: WorldDatabase.h:97
DBCStorage< BattlemasterListEntry > sBattlemasterListStore(BattlemasterListfmt)
void setUInt8(const uint8 index, const uint8 value)
Definition: PreparedStatement.cpp:97
Definition: WorldDatabase.h:96
void setString(const uint8 index, const std::string &value)
Definition: PreparedStatement.cpp:187
arena_t NULL
Definition: jemalloc_internal.h:624
WorldDatabaseWorkerPool WorldDatabase
Accessor to the world database.
Definition: DatabaseEnv.cpp:20
Definition: Language.h:1098
#define sObjectMgr
Definition: ObjectMgr.h:1567
Definition: PreparedStatement.h:74
Definition: Language.h:1078
Definition: Language.h:447
Definition: DisableMgr.h:36
#define MAX_OUTDOORPVP_TYPES
Definition: OutdoorPvP.h:37
Definition: Language.h:1099
void setUInt16(const uint8 index, const uint16 value)
Definition: PreparedStatement.cpp:106
#define sSpellMgr
Definition: SpellMgr.h:756
Definition: DisableMgr.h:32
uint32_t uint32
Definition: Define.h:150
Definition: DisableMgr.h:35
Definition: DisableMgr.h:29
PreparedStatement * GetPreparedStatement(PreparedStatementIndex index)
Definition: DatabaseWorkerPool.h:263
void setUInt32(const uint8 index, const uint32 value)
Definition: PreparedStatement.cpp:115
Definition: DisableMgr.h:30
uint8_t uint8
Definition: g3dmath.h:164
Definition: DisableMgr.h:33
QueryResult Query(const char *sql, T *connection=nullptr)
Definition: DatabaseWorkerPool.cpp:113
Definition: Language.h:474
DBCStorage< MapEntry > sMapStore(Mapfmt)
Definition: DisableMgr.h:31
uint8_t uint8
Definition: Define.h:152
void PSendSysMessage(const char *fmt, Args &&...args)
Definition: Chat.h:72
Definition: DisableMgr.h:34
uint32_t uint32
Definition: g3dmath.h:168
uint8 flags
Definition: DisableMgr.cpp:44
Definition: Language.h:1100
#define sAchievementMgr
Definition: AchievementMgr.h:501