From 4af592a543a7a8129a0a8777e03c99719a601e44 Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Mon, 22 Apr 2024 19:52:23 +0200 Subject: [PATCH] feat: server MOTDs --- MyMcRealms/Controllers/WorldsController.cs | 2 +- MyMcRealms/MyMcAPI/Responses/AllServersResponse.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/MyMcRealms/Controllers/WorldsController.cs b/MyMcRealms/Controllers/WorldsController.cs index 900d02f..b27cd47 100644 --- a/MyMcRealms/Controllers/WorldsController.cs +++ b/MyMcRealms/Controllers/WorldsController.cs @@ -49,7 +49,7 @@ namespace MyMcRealms.Controllers Owner = "Owner", OwnerUUID = "069a79f444e94726a5befca90e38aaf5", Name = world.ServerName, - Motd = "A world hosted on my-mc.link", + Motd = world.Motd, State = "OPEN", WorldType = "NORMAL", MaxPlayers = 10, diff --git a/MyMcRealms/MyMcAPI/Responses/AllServersResponse.cs b/MyMcRealms/MyMcAPI/Responses/AllServersResponse.cs index 416a330..f80028d 100644 --- a/MyMcRealms/MyMcAPI/Responses/AllServersResponse.cs +++ b/MyMcRealms/MyMcAPI/Responses/AllServersResponse.cs @@ -12,5 +12,6 @@ namespace MyMcRealms.MyMcAPI.Responses public string ServerName { get; set; } = string.Empty; public string Connect { get; set; } = string.Empty; public string GameVersion { get; set; } = string.Empty; + public string Motd { get; set; } = string.Empty; } }