feat(sevrer): use stop command for the StopServer function

This commit is contained in:
CyberL1 2024-07-16 17:41:21 +02:00
parent de45bf843e
commit 22ee98584b

View File

@ -48,14 +48,7 @@ namespace Minecraft_Realms_Emulator.Modes.Realms.Helpers
public void StopServer()
{
ProcessStartInfo serverProcessInfo = new();
serverProcessInfo.FileName = "docker";
serverProcessInfo.Arguments = $"container stop realm-server-{world.Id}";
Process serverProcess = new();
serverProcess.StartInfo = serverProcessInfo;
serverProcess.Start();
ExecuteCommand("stop");
}
public void RebootServer()