TrinityCore
Loading...
Searching...
No Matches
server_commandscript Class Reference
+ Inheritance diagram for server_commandscript:

Public Member Functions

 server_commandscript ()
 
std::span< ChatCommandBuilder const > GetCommands () const override
 
- Public Member Functions inherited from CommandScript
 ~CommandScript ()
 
- Public Member Functions inherited from ScriptObject
 ScriptObject (ScriptObject const &right)=delete
 
 ScriptObject (ScriptObject &&right)=delete
 
ScriptObject & operator= (ScriptObject const &right)=delete
 
ScriptObject & operator= (ScriptObject &&right)=delete
 
std::string const & GetName () const
 

Static Public Member Functions

static bool HandleServerCorpsesCommand (ChatHandler *, char const *)
 
static bool HandleServerDebugCommand (ChatHandler *handler, char const *)
 
static bool HandleServerInfoCommand (ChatHandler *handler, char const *)
 
static bool HandleServerMotdCommand (ChatHandler *handler, char const *)
 
static bool HandleServerPLimitCommand (ChatHandler *handler, char const *args)
 
static bool HandleServerShutDownCancelCommand (ChatHandler *handler, char const *)
 
static bool IsOnlyUser (WorldSession *mySession)
 
static bool HandleServerShutDownCommand (ChatHandler *handler, char const *args)
 
static bool HandleServerRestartCommand (ChatHandler *handler, char const *args)
 
static bool HandleServerForceShutDownCommand (ChatHandler *handler, char const *args)
 
static bool HandleServerForceRestartCommand (ChatHandler *handler, char const *args)
 
static bool HandleServerIdleShutDownCommand (ChatHandler *handler, char const *args)
 
static bool HandleServerIdleRestartCommand (ChatHandler *handler, char const *args)
 
static bool HandleServerExitCommand (ChatHandler *handler, char const *)
 
static bool HandleServerSetMotdCommand (ChatHandler *handler, char const *args)
 
static bool HandleServerSetClosedCommand (ChatHandler *handler, char const *args)
 
static bool HandleServerSetLogLevelCommand (ChatHandler *, std::string const &type, std::string const &name, int32 level)
 

Static Private Member Functions

static bool ParseExitCode (char const *exitCodeStr, int32 &exitCode)
 
static bool ShutdownServer (ChatHandler *handler, char const *args, uint32 shutdownMask, int32 defaultExitCode)
 

Additional Inherited Members

- Protected Member Functions inherited from CommandScript
 CommandScript (char const *name) noexcept
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (char const *name) noexcept
 
virtual ~ScriptObject ()
 

Detailed Description

Definition at line 56 of file cs_server.cpp.

Constructor & Destructor Documentation

◆ server_commandscript()

server_commandscript::server_commandscript ( )
inline

Definition at line 59 of file cs_server.cpp.

Member Function Documentation

◆ GetCommands()

std::span< ChatCommandBuilder const > server_commandscript::GetCommands ( ) const
inlineoverridevirtual

◆ HandleServerCorpsesCommand()

static bool server_commandscript::HandleServerCorpsesCommand ( ChatHandler *  ,
char const *   
)
inlinestatic

Definition at line 119 of file cs_server.cpp.

References sWorld.

Referenced by GetCommands().

◆ HandleServerDebugCommand()

◆ HandleServerExitCommand()

static bool server_commandscript::HandleServerExitCommand ( ChatHandler *  handler,
char const *   
)
inlinestatic

◆ HandleServerForceRestartCommand()

static bool server_commandscript::HandleServerForceRestartCommand ( ChatHandler *  handler,
char const *  args 
)
inlinestatic

Definition at line 379 of file cs_server.cpp.

References RESTART_EXIT_CODE, SHUTDOWN_MASK_FORCE, SHUTDOWN_MASK_RESTART, and ShutdownServer().

Referenced by GetCommands().

◆ HandleServerForceShutDownCommand()

static bool server_commandscript::HandleServerForceShutDownCommand ( ChatHandler *  handler,
char const *  args 
)
inlinestatic

Definition at line 374 of file cs_server.cpp.

References SHUTDOWN_EXIT_CODE, SHUTDOWN_MASK_FORCE, and ShutdownServer().

Referenced by GetCommands().

◆ HandleServerIdleRestartCommand()

static bool server_commandscript::HandleServerIdleRestartCommand ( ChatHandler *  handler,
char const *  args 
)
inlinestatic

Definition at line 389 of file cs_server.cpp.

References RESTART_EXIT_CODE, SHUTDOWN_MASK_IDLE, SHUTDOWN_MASK_RESTART, and ShutdownServer().

Referenced by GetCommands().

◆ HandleServerIdleShutDownCommand()

static bool server_commandscript::HandleServerIdleShutDownCommand ( ChatHandler *  handler,
char const *  args 
)
inlinestatic

Definition at line 384 of file cs_server.cpp.

References SHUTDOWN_EXIT_CODE, SHUTDOWN_MASK_IDLE, and ShutdownServer().

Referenced by GetCommands().

◆ HandleServerInfoCommand()

static bool server_commandscript::HandleServerInfoCommand ( ChatHandler *  handler,
char const *   
)
inlinestatic

◆ HandleServerMotdCommand()

static bool server_commandscript::HandleServerMotdCommand ( ChatHandler *  handler,
char const *   
)
inlinestatic

Definition at line 278 of file cs_server.cpp.

References LANG_MOTD_CURRENT, ChatHandler::PSendSysMessage(), and sWorld.

Referenced by GetCommands().

◆ HandleServerPLimitCommand()

static bool server_commandscript::HandleServerPLimitCommand ( ChatHandler *  handler,
char const *  args 
)
inlinestatic

◆ HandleServerRestartCommand()

static bool server_commandscript::HandleServerRestartCommand ( ChatHandler *  handler,
char const *  args 
)
inlinestatic

Definition at line 369 of file cs_server.cpp.

References RESTART_EXIT_CODE, SHUTDOWN_MASK_RESTART, and ShutdownServer().

Referenced by GetCommands().

◆ HandleServerSetClosedCommand()

static bool server_commandscript::HandleServerSetClosedCommand ( ChatHandler *  handler,
char const *  args 
)
inlinestatic

◆ HandleServerSetLogLevelCommand()

static bool server_commandscript::HandleServerSetLogLevelCommand ( ChatHandler *  ,
std::string const &  type,
std::string const &  name,
int32  level 
)
inlinestatic

Definition at line 432 of file cs_server.cpp.

References sLog.

Referenced by GetCommands().

◆ HandleServerSetMotdCommand()

static bool server_commandscript::HandleServerSetMotdCommand ( ChatHandler *  handler,
char const *  args 
)
inlinestatic

Definition at line 403 of file cs_server.cpp.

References LANG_MOTD_NEW, ChatHandler::PSendSysMessage(), and sWorld.

Referenced by GetCommands().

◆ HandleServerShutDownCancelCommand()

static bool server_commandscript::HandleServerShutDownCancelCommand ( ChatHandler *  handler,
char const *   
)
inlinestatic

Definition at line 346 of file cs_server.cpp.

References LANG_SHUTDOWN_CANCELLED, ChatHandler::PSendSysMessage(), and sWorld.

Referenced by GetCommands().

◆ HandleServerShutDownCommand()

static bool server_commandscript::HandleServerShutDownCommand ( ChatHandler *  handler,
char const *  args 
)
inlinestatic

Definition at line 364 of file cs_server.cpp.

References SHUTDOWN_EXIT_CODE, and ShutdownServer().

Referenced by GetCommands().

◆ IsOnlyUser()

static bool server_commandscript::IsOnlyUser ( WorldSession *  mySession)
inlinestatic

Definition at line 354 of file cs_server.cpp.

References WorldSession::GetRemoteAddress(), and sWorld.

Referenced by ShutdownServer().

◆ ParseExitCode()

static bool server_commandscript::ParseExitCode ( char const *  exitCodeStr,
int32 &  exitCode 
)
inlinestaticprivate

Definition at line 442 of file cs_server.cpp.

Referenced by ShutdownServer().

◆ ShutdownServer()


The documentation for this class was generated from the following file: