MCPcopy Create free account
hub / github.com/cuberite/cuberite / ExecuteConsoleCommand

Method ExecuteConsoleCommand

src/Root.cpp:473–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471
472
473void cRoot::ExecuteConsoleCommand(const AString & a_Cmd, cCommandOutputCallback & a_Output)
474{
475 // Some commands are built-in:
476 if (a_Cmd == "stop")
477 {
478 m_bStop = true;
479 }
480 else if (a_Cmd == "restart")
481 {
482 m_bRestart = true;
483 }
484
485 LOG("Executing console command: \"%s\"", a_Cmd.c_str());
486 m_Server->ExecuteConsoleCommand(a_Cmd, a_Output);
487}
488
489
490

Callers 2

InputThreadMethod · 0.95
ProcessPacketMethod · 0.45

Calls 2

LOGFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected