mirror of
https://github.com/CyberL1/MyMcRealms.git
synced 2025-04-10 18:08:36 -04:00
Compare commits
No commits in common. "9976c0bbb570a248934a0dbb3c121f412418e7c0" and "7f7444249c1e1e116631b84dd2f77355fd88a0a9" have entirely different histories.
9976c0bbb5
...
7f7444249c
@ -44,7 +44,7 @@ namespace MyMcRealms.Controllers
|
|||||||
bool isBanned = world.Banlist.Any(p => p.Name == playerName);
|
bool isBanned = world.Banlist.Any(p => p.Name == playerName);
|
||||||
|
|
||||||
string worldOwnerName = world.Ops.ToArray().Length == 0 ? "Not claimed" : world.Ops[0].Name;
|
string worldOwnerName = world.Ops.ToArray().Length == 0 ? "Not claimed" : world.Ops[0].Name;
|
||||||
string worldOwnerUuid = world.Ops.ToArray().Length == 0 ? "069a79f444e94726a5befca90e38aaf5" : world.Ops[0].Uuid.Replace("-", "");
|
string worldOwnerUuid = world.Ops.ToArray().Length == 0 ? "069a79f444e94726a5befca90e38aaf5" : world.Ops[0].Uuid;
|
||||||
string worldName = world.Ops.ToArray().Length == 0 ? world.ServerName : $"{world.Ops[0].Name}'s server";
|
string worldName = world.Ops.ToArray().Length == 0 ? world.ServerName : $"{world.Ops[0].Name}'s server";
|
||||||
string worldState = !isBanned ? "OPEN" : "CLOSED";
|
string worldState = !isBanned ? "OPEN" : "CLOSED";
|
||||||
|
|
||||||
@ -53,13 +53,6 @@ namespace MyMcRealms.Controllers
|
|||||||
worldState = "CLOSED";
|
worldState = "CLOSED";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SemVersion.Parse(gameVerision, SemVersionStyles.OptionalPatch).ComparePrecedenceTo(SemVersion.Parse("1.19.4", SemVersionStyles.OptionalPatch)) < 0) {
|
|
||||||
world.Motd = world.Motd.Remove(32); // Pre 1.19.4 MOTD limit
|
|
||||||
} else
|
|
||||||
{
|
|
||||||
world.Motd = world.Motd.Remove(52); // Post 1.19.4 MOTD limit
|
|
||||||
}
|
|
||||||
|
|
||||||
WorldResponse response = new()
|
WorldResponse response = new()
|
||||||
{
|
{
|
||||||
Id = AllServers.Servers.IndexOf(world),
|
Id = AllServers.Servers.IndexOf(world),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user