1
1
mirror of https://github.com/CyberL1/MyMcRealms.git synced 2024-12-24 05:18:23 -05:00

fix: display real hardcore property (not the difficulty one)

This commit is contained in:
CyberL1 2024-12-21 13:12:16 +01:00
parent 67d324971e
commit 15af6a794a
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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