TrinityCore
server_commandscript Class Reference
+ Inheritance diagram for server_commandscript:

Public Member Functions

 server_commandscript ()
 
std::vector< ChatCommandGetCommands () const override
 
- Public Member Functions inherited from CommandScript
 ~CommandScript ()
 
virtual std::vector< Trinity::ChatCommands::ChatCommandBuilderGetCommands () const =0
 
- Public Member Functions inherited from ScriptObject
 ScriptObject (ScriptObject const &right)=delete
 
 ScriptObject (ScriptObject &&right)=delete
 
ScriptObjectoperator= (ScriptObject const &right)=delete
 
ScriptObjectoperator= (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)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (char const *name)
 
virtual ~ScriptObject ()
 

Detailed Description

Definition at line 53 of file cs_server.cpp.

Constructor & Destructor Documentation

◆ server_commandscript()

server_commandscript::server_commandscript ( )
inline

Definition at line 56 of file cs_server.cpp.

Member Function Documentation

◆ GetCommands()

std::vector< ChatCommand > server_commandscript::GetCommands ( ) const
inlineoverridevirtual

Implements CommandScript.

Definition at line 58 of file cs_server.cpp.

+ Here is the call graph for this function:

◆ HandleServerCorpsesCommand()

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

Definition at line 116 of file cs_server.cpp.

+ Here is the caller graph for this function:

◆ HandleServerDebugCommand()

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

Definition at line 122 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerExitCommand()

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

Definition at line 396 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerForceRestartCommand()

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

Definition at line 380 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerForceShutDownCommand()

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

Definition at line 375 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerIdleRestartCommand()

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

Definition at line 390 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerIdleShutDownCommand()

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

Definition at line 385 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerInfoCommand()

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

Definition at line 256 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerMotdCommand()

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

Definition at line 279 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerPLimitCommand()

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

Definition at line 288 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerRestartCommand()

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

Definition at line 370 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerSetClosedCommand()

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

Definition at line 412 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerSetLogLevelCommand()

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

Definition at line 433 of file cs_server.cpp.

+ Here is the caller graph for this function:

◆ HandleServerSetMotdCommand()

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

Definition at line 404 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerShutDownCancelCommand()

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

Definition at line 347 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerShutDownCommand()

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

Definition at line 365 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsOnlyUser()

static bool server_commandscript::IsOnlyUser ( WorldSession mySession)
inlinestatic

Definition at line 355 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ParseExitCode()

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

Definition at line 443 of file cs_server.cpp.

+ Here is the caller graph for this function:

◆ ShutdownServer()

static bool server_commandscript::ShutdownServer ( ChatHandler handler,
char const *  args,
uint32  shutdownMask,
int32  defaultExitCode 
)
inlinestaticprivate

Definition at line 460 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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