mirror of
https://github.com/CyberL1/MyMcRealms.git
synced 2024-11-24 15:08:22 -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,
|
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,
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user