mirror of
https://github.com/CyberL1/MyMcRealms.git
synced 2024-12-24 21:38:23 -05:00
fix: display real hardcore property (not the difficulty one)
This commit is contained in:
parent
67d324971e
commit
15af6a794a
@ -75,7 +75,7 @@ namespace MyMcRealms.Controllers
|
||||
OwnerUUID = worldOwnerUuid,
|
||||
Name = worldName,
|
||||
Motd = world.Motd.Replace("<22>", "§").Replace("&", "§"),
|
||||
IsHardcore = world.Difficulty == "hard",
|
||||
IsHardcore = world.Hardcore,
|
||||
State = worldState,
|
||||
WorldType = "NORMAL",
|
||||
MaxPlayers = 10,
|
||||
@ -162,7 +162,7 @@ namespace MyMcRealms.Controllers
|
||||
OwnerUUID = worldOwnerUuid,
|
||||
Name = worldName,
|
||||
Motd = world.Motd.Replace("<22>", "§"),
|
||||
IsHardcore = world.Difficulty == "hard",
|
||||
IsHardcore = world.Hardcore,
|
||||
State = whitelist.Enabled ? "CLOSED" : "OPEN",
|
||||
WorldType = "NORMAL",
|
||||
MaxPlayers = 10,
|
||||
|
@ -19,7 +19,7 @@
|
||||
public bool WhitelistEnable { get; set; }
|
||||
public string OwnersToken { get; set; } = string.Empty;
|
||||
public string Gamemode { get; set; } = null!;
|
||||
public string Difficulty { get; set; } = null!;
|
||||
public bool Hardcore { get; set; }
|
||||
}
|
||||
|
||||
public class Op
|
||||
|
Loading…
Reference in New Issue
Block a user