mirror of
https://github.com/CyberL1/MyMcRealms.git
synced 2024-11-21 21:48:21 -05:00
feat: server id as realm name
This commit is contained in:
parent
eb5a402cde
commit
4ddc2b9baa
@ -48,7 +48,7 @@ namespace MyMcRealms.Controllers
|
|||||||
Id = AllServers.Servers.IndexOf(world),
|
Id = AllServers.Servers.IndexOf(world),
|
||||||
Owner = "Owner",
|
Owner = "Owner",
|
||||||
OwnerUUID = "069a79f444e94726a5befca90e38aaf5",
|
OwnerUUID = "069a79f444e94726a5befca90e38aaf5",
|
||||||
Name = "my-mc.link world",
|
Name = world.ServerName,
|
||||||
Motd = "A world hosted on my-mc.link",
|
Motd = "A world hosted on my-mc.link",
|
||||||
State = "OPEN",
|
State = "OPEN",
|
||||||
WorldType = "NORMAL",
|
WorldType = "NORMAL",
|
||||||
|
@ -5,17 +5,12 @@ namespace MyMcRealms.MyMcAPI.Responses
|
|||||||
{
|
{
|
||||||
public bool Success { get; set; }
|
public bool Success { get; set; }
|
||||||
public List<Server> Servers { get; set; }
|
public List<Server> Servers { get; set; }
|
||||||
|
|
||||||
public static implicit operator Task<object>(AllServersResponse? v)
|
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Server
|
public class Server
|
||||||
{
|
{
|
||||||
public string ServerName { get; set; } = string.Empty;
|
public string ServerName { get; set; } = string.Empty;
|
||||||
public string Connect { 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user