mirror of
https://github.com/CyberL1/MyMcRealms.git
synced 2024-11-21 13:38:21 -05:00
fix: whitelist state is now reflected in server's configuration page
This commit is contained in:
parent
2dea13e5c9
commit
fd688ebc5d
@ -104,7 +104,7 @@ namespace MyMcRealms.Controllers
|
||||
OwnerUUID = worldOwnerUuid,
|
||||
Name = worldName,
|
||||
Motd = world.Motd,
|
||||
State = "OPEN",
|
||||
State = world.WhitelistEnable ? "CLOSED" : "OPEN",
|
||||
WorldType = "NORMAL",
|
||||
MaxPlayers = 10,
|
||||
MinigameId = null,
|
||||
|
@ -16,6 +16,7 @@
|
||||
public List<Op> Ops { get; set; } = null!;
|
||||
public List<Ban> Banlist { get; set; } = null!;
|
||||
public List<Whitelist> Whitelist { get; set; } = null!;
|
||||
public bool WhitelistEnable { get; set; }
|
||||
public string OwnersToken { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user