mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-05-26 20:54:35 +00:00
* Remove stdafx.h and some <unordered_set> includes * Update Minecraft Server Defines and remove more unused folders/files * Unbloat stdafx.h from Minecraft.World
32 lines
516 B
C++
32 lines
516 B
C++
|
|
#include "CliCommandStop.h"
|
|
|
|
#include "..\..\ServerCliEngine.h"
|
|
|
|
namespace ServerRuntime
|
|
{
|
|
const char *CliCommandStop::Name() const
|
|
{
|
|
return "stop";
|
|
}
|
|
|
|
const char *CliCommandStop::Usage() const
|
|
{
|
|
return "stop";
|
|
}
|
|
|
|
const char *CliCommandStop::Description() const
|
|
{
|
|
return "Stop the dedicated server.";
|
|
}
|
|
|
|
bool CliCommandStop::Execute(const ServerCliParsedLine &line, ServerCliEngine *engine)
|
|
{
|
|
(void)line;
|
|
engine->LogInfo("Stopping server...");
|
|
engine->RequestShutdown();
|
|
return true;
|
|
}
|
|
}
|
|
|