mirror of
https://github.com/CyberL1/Minecraft-Realms-Emulator.git
synced 2025-06-28 08:09:42 -04:00
feat: send closed message if the server is closed
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user