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:
parent
67d324971e
commit
15af6a794a
@ -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,
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user