58 {
"gm", gmCommandTable },
79 session->GetPlayer()->SetGMChat(
true);
85 session->GetPlayer()->SetGMChat(
false);
125 AccountTypes playerSec = player->GetSession()->GetSecurity();
126 if ((player->IsGameMaster() ||
138 std::string
const& name = player->GetName();
140 uint8 security = playerSec;
143 if ((max + max2 +
size) == 16)
148 handler->
PSendSysMessage(
"|%*s%s%*s| %u |", max,
" ", name.c_str(), max2,
" ", security);
174 Field* fields = result->Fetch();
177 uint8 max = (16 - strlen(name)) / 2;
179 if ((max + max2 + strlen(name)) == 16)
184 handler->
PSendSysMessage(
"|%*s%s%*s| %u |", max,
" ", name, max2,
" ", security);
185 }
while (result->NextRow());
204 const uint32 VISUAL_AURA = 37800;
208 if (_player->
HasAura(VISUAL_AURA))
217 _player->
AddAura(VISUAL_AURA, _player);
std::shared_ptr< PreparedResultSet > PreparedQueryResult
DatabaseWorkerPool< LoginDatabaseConnection > LoginDatabase
Accessor to the realm/login database.
@ LANG_INVISIBLE_INVISIBLE
@ LANG_COMMAND_FLYMODE_STATUS
std::optional< T > Optional
Optional helper class to wrap optional values within.
Player * getSelectedPlayer()
WorldSession * GetSession()
virtual std::string GetNameLink() const
void PSendSysMessage(const char *fmt, Args &&... args)
void SetSentErrorMessage(bool val)
Player * GetPlayer() const
virtual void SendSysMessage(std::string_view str, bool escapeCharacters=false)
virtual char const * GetTrinityString(uint32 entry) const
Class used to access individual fields of database query result.
char const * GetCString() const
void SetGameMaster(bool on)
void UpdateTriggerVisibility()
void SetGMVisible(bool on)
void UpdateObjectVisibility(bool forced=true) override
void setInt32(const uint8 index, const int32 value)
void setUInt8(const uint8 index, const uint8 value)
Aura * AddAura(uint32 spellId, Unit *target)
bool SetCanTransitionBetweenSwimAndFly(bool enable)
bool SetCanFly(bool enable)
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Player session in the World.
void SendNotification(char const *format,...) ATTR_PRINTF(2
Player * GetPlayer() const
static bool HandleGMChatCommand(ChatHandler *handler, Optional< bool > enableArg)
ChatCommandTable GetCommands() const override
static bool HandleGMFlyCommand(ChatHandler *handler, bool enable)
static bool HandleGMOffCommand(ChatHandler *handler)
static bool HandleGMVisibleCommand(ChatHandler *handler, Optional< bool > visibleArg)
static bool HandleGMListIngameCommand(ChatHandler *handler)
static bool HandleGMListFullCommand(ChatHandler *handler)
Display the list of GMs.
static bool HandleGMOnCommand(ChatHandler *handler)
void AddSC_gm_commandscript()
@ CONFIG_GM_LEVEL_IN_GM_LIST
TC_GAME_API HashMapHolder< Player >::MapType const & GetPlayers()
std::vector< ChatCommandBuilder > ChatCommandTable
constexpr std::size_t size()
@ RBAC_PERM_COMMAND_GM_INGAME
@ RBAC_PERM_COMMAND_GM_CHAT
@ RBAC_PERM_CHAT_USE_STAFF_BADGE
@ RBAC_PERM_COMMAND_GM_VISIBLE
@ RBAC_PERM_COMMAND_GM_LIST
@ RBAC_PERM_COMMAND_GM_FLY
@ RBAC_PERM_COMMANDS_APPEAR_IN_GM_LIST
Battlenet::RealmHandle Id