From 4ddc2b9baabb75ec41fdc932e58834abd800269b Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Mon, 22 Apr 2024 18:56:14 +0200 Subject: [PATCH] feat: server id as realm name --- MyMcRealms/Controllers/WorldsController.cs | 2 +- MyMcRealms/MyMcAPI/Responses/AllServersResponse.cs | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/MyMcRealms/Controllers/WorldsController.cs b/MyMcRealms/Controllers/WorldsController.cs index 4b53fc2..900d02f 100644 --- a/MyMcRealms/Controllers/WorldsController.cs +++ b/MyMcRealms/Controllers/WorldsController.cs @@ -48,7 +48,7 @@ namespace MyMcRealms.Controllers Id = AllServers.Servers.IndexOf(world), Owner = "Owner", OwnerUUID = "069a79f444e94726a5befca90e38aaf5", - Name = "my-mc.link world", + Name = world.ServerName, Motd = "A world hosted on my-mc.link", State = "OPEN", WorldType = "NORMAL", diff --git a/MyMcRealms/MyMcAPI/Responses/AllServersResponse.cs b/MyMcRealms/MyMcAPI/Responses/AllServersResponse.cs index fc0e20e..416a330 100644 --- a/MyMcRealms/MyMcAPI/Responses/AllServersResponse.cs +++ b/MyMcRealms/MyMcAPI/Responses/AllServersResponse.cs @@ -5,17 +5,12 @@ namespace MyMcRealms.MyMcAPI.Responses { public bool Success { get; set; } public List Servers { get; set; } - - public static implicit operator Task(AllServersResponse? v) - { - throw new NotImplementedException(); - } } public class Server { public string ServerName { get; set; } = string.Empty; public string Connect { get; set; } = string.Empty; - public string GameVersion { get; set; } = string.Empty; + public string GameVersion { get; set; } = string.Empty; } }