mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-06-09 03:02:56 +00:00
Change default for hardcore-ban-ip to false
Updated the default value of the "hardcore-ban-ip" server property from "true" to "false" in the `kServerPropertyDefaults` array. Adjusted the `LoadServerPropertiesConfig` function to read the "hardcore-ban-ip" property as "false" to ensure consistency with the new default.
This commit is contained in:
parent
4a3128d32b
commit
9af36133cc
|
|
@ -55,7 +55,7 @@ static const ServerPropertyDefault kServerPropertyDefaults[] =
|
|||
{ "gamertags", "true" },
|
||||
{ "generate-structures", "true" },
|
||||
{ "hardcore", "false" },
|
||||
{ "hardcore-ban-ip", "true" },
|
||||
{ "hardcore-ban-ip", "false" },
|
||||
{ "host-can-be-invisible", "true" },
|
||||
{ "host-can-change-hunger", "true" },
|
||||
{ "host-can-fly", "true" },
|
||||
|
|
@ -864,7 +864,7 @@ ServerPropertiesConfig LoadServerPropertiesConfig()
|
|||
config.naturalRegeneration = ReadNormalizedBoolProperty(&merged, "natural-regeneration", true, &shouldWrite);
|
||||
config.doDaylightCycle = ReadNormalizedBoolProperty(&merged, "do-daylight-cycle", true, &shouldWrite);
|
||||
config.hardcore = ReadNormalizedBoolProperty(&merged, "hardcore", false, &shouldWrite);
|
||||
config.hardcoreBanIp = ReadNormalizedBoolProperty(&merged, "hardcore-ban-ip", true, &shouldWrite);
|
||||
config.hardcoreBanIp = ReadNormalizedBoolProperty(&merged, "hardcore-ban-ip", false, &shouldWrite);
|
||||
|
||||
config.maxBuildHeight = ReadNormalizedIntProperty(&merged, "max-build-height", 256, 64, 256, &shouldWrite);
|
||||
config.motd = ReadNormalizedStringProperty(&merged, "motd", "A Minecraft Server", 255, &shouldWrite);
|
||||
|
|
|
|||
Loading…
Reference in a new issue