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

fix: whitelist state is now reflected in server's configuration page

This commit is contained in:
CyberL1 2024-05-14 07:25:59 +02:00
parent 2dea13e5c9
commit fd688ebc5d
2 changed files with 2 additions and 1 deletions

View File

@ -104,7 +104,7 @@ namespace MyMcRealms.Controllers
OwnerUUID = worldOwnerUuid, OwnerUUID = worldOwnerUuid,
Name = worldName, Name = worldName,
Motd = world.Motd, Motd = world.Motd,
State = "OPEN", State = world.WhitelistEnable ? "CLOSED" : "OPEN",
WorldType = "NORMAL", WorldType = "NORMAL",
MaxPlayers = 10, MaxPlayers = 10,
MinigameId = null, MinigameId = null,

View File

@ -16,6 +16,7 @@
public List<Op> Ops { get; set; } = null!; public List<Op> Ops { get; set; } = null!;
public List<Ban> Banlist { get; set; } = null!; public List<Ban> Banlist { get; set; } = null!;
public List<Whitelist> Whitelist { get; set; } = null!; public List<Whitelist> Whitelist { get; set; } = null!;
public bool WhitelistEnable { get; set; }
public string OwnersToken { get; set; } = string.Empty; public string OwnersToken { get; set; } = string.Empty;
} }