diff --git a/Minecraft-Realms-Emulator/Controllers/Admin/ServersController.cs b/Minecraft-Realms-Emulator/Controllers/Admin/ServersController.cs index 4da404d..79d3145 100644 --- a/Minecraft-Realms-Emulator/Controllers/Admin/ServersController.cs +++ b/Minecraft-Realms-Emulator/Controllers/Admin/ServersController.cs @@ -2,6 +2,7 @@ using Minecraft_Realms_Emulator.Attributes; using Minecraft_Realms_Emulator.Data; using Minecraft_Realms_Emulator.Entities; +using Minecraft_Realms_Emulator.Enums; using Minecraft_Realms_Emulator.Modes.Realms.Helpers; namespace Minecraft_Realms_Emulator.Controllers.Admin @@ -55,6 +56,7 @@ namespace Minecraft_Realms_Emulator.Controllers.Admin await HttpContext.Response.Body.FlushAsync(); }); + if (world.State == nameof(StateEnum.CLOSED)) await HttpContext.Response.WriteAsync("data: closed\n\n"); return new EmptyResult(); }