mirror of
https://github.com/CyberL1/Minecraft-Realms-Emulator.git
synced 2024-11-21 13:48:21 -05:00
feat(sevrer): use stop
command for the StopServer
function
This commit is contained in:
parent
de45bf843e
commit
22ee98584b
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user