From 9af36133ccb0ef49a86b4411f8be482fcbe460ed Mon Sep 17 00:00:00 2001 From: Revela Date: Mon, 16 Mar 2026 08:10:40 -0500 Subject: [PATCH] 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. --- Minecraft.Server/ServerProperties.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Minecraft.Server/ServerProperties.cpp b/Minecraft.Server/ServerProperties.cpp index 65c72191..9f3a787c 100644 --- a/Minecraft.Server/ServerProperties.cpp +++ b/Minecraft.Server/ServerProperties.cpp @@ -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);