diff --git a/MyMcRealms/Controllers/McoController.cs b/MyMcRealms/Controllers/McoController.cs index e956082..f70226f 100644 --- a/MyMcRealms/Controllers/McoController.cs +++ b/MyMcRealms/Controllers/McoController.cs @@ -42,5 +42,11 @@ namespace MyMcRealms.Controllers return news; } + + [HttpPost("tos/agreed")] + public ActionResult TosAgree() + { + return Ok(); + } } } \ No newline at end of file diff --git a/MyMcRealms/Controllers/WorldsController.cs b/MyMcRealms/Controllers/WorldsController.cs index 6e62f82..8556a33 100644 --- a/MyMcRealms/Controllers/WorldsController.cs +++ b/MyMcRealms/Controllers/WorldsController.cs @@ -41,7 +41,7 @@ namespace MyMcRealms.Controllers { Id = AllServers.Servers.IndexOf(world), Owner = "Owner", - OwnerUUID = "87a2931cf37f4867b6dd1f0699e138d3s", + OwnerUUID = "069a79f444e94726a5befca90e38aaf5", Name = "my-mc.link world", Motd = "A world hosted on my-mc.link", State = "OPEN", @@ -55,7 +55,8 @@ namespace MyMcRealms.Controllers Players = [], DaysLeft = 0, Expired = false, - ExpiredTrial = false + ExpiredTrial = false, + Compatibility = "COMPATIBLE" }; allWorlds.Add(response); @@ -219,7 +220,7 @@ namespace MyMcRealms.Controllers public async Task> Join(int wId) { AllServersResponse AllServers = await new MyMcAPI.MyMcAPI(Environment.GetEnvironmentVariable("MYMC_API_KEY")).GetAllServers(); - + ConnectionResponse connection = new() { Address = AllServers.Servers[wId].Connect, diff --git a/MyMcRealms/Responses/WorldResponse.cs b/MyMcRealms/Responses/WorldResponse.cs index 3397bd5..fd81f85 100644 --- a/MyMcRealms/Responses/WorldResponse.cs +++ b/MyMcRealms/Responses/WorldResponse.cs @@ -6,5 +6,6 @@ public int DaysLeft { get; set; } = 30; public bool Expired { get; set; } = false; public bool ExpiredTrial { get; set; } = false; + public string Compatibility { get; set; } = string.Empty; } } \ No newline at end of file