1
1
mirror of https://github.com/CyberL1/MyMcRealms.git synced 2024-12-25 05:48: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, OwnerUUID = worldOwnerUuid,
Name = worldName, Name = worldName,
Motd = world.Motd.Replace("<22>", "§").Replace("&", "§"), Motd = world.Motd.Replace("<22>", "§").Replace("&", "§"),
IsHardcore = world.Difficulty == "hard", IsHardcore = world.Hardcore,
State = worldState, State = worldState,
WorldType = "NORMAL", WorldType = "NORMAL",
MaxPlayers = 10, MaxPlayers = 10,
@ -162,7 +162,7 @@ namespace MyMcRealms.Controllers
OwnerUUID = worldOwnerUuid, OwnerUUID = worldOwnerUuid,
Name = worldName, Name = worldName,
Motd = world.Motd.Replace("<22>", "§"), Motd = world.Motd.Replace("<22>", "§"),
IsHardcore = world.Difficulty == "hard", IsHardcore = world.Hardcore,
State = whitelist.Enabled ? "CLOSED" : "OPEN", State = whitelist.Enabled ? "CLOSED" : "OPEN",
WorldType = "NORMAL", WorldType = "NORMAL",
MaxPlayers = 10, MaxPlayers = 10,

View File

@ -19,7 +19,7 @@
public bool WhitelistEnable { get; set; } public bool WhitelistEnable { get; set; }
public string OwnersToken { get; set; } = string.Empty; public string OwnersToken { get; set; } = string.Empty;
public string Gamemode { get; set; } = null!; public string Gamemode { get; set; } = null!;
public string Difficulty { get; set; } = null!; public bool Hardcore { get; set; }
} }
public class Op public class Op