1
0
mirror of https://github.com/CyberL1/MyMcRealms.git synced 2024-11-21 21:48:21 -05:00

fix: world state on older version

This commit is contained in:
CyberL1 2024-05-19 17:13:17 +02:00
parent f3a8728706
commit dca802bb37

View File

@ -44,7 +44,7 @@ namespace MyMcRealms.Controllers
string worldOwnerName = world.Ops.ToArray().Length == 0 ? "Owner" : world.Ops[0].Name;
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 worldState = isCompatibleOnOlderVersions || !isBanned ? "OPEN" : "CLOSED";
string worldState = isCompatibleOnOlderVersions && !isBanned ? "OPEN" : "CLOSED";
WorldResponse response = new()
{