diff --git a/python/src/endstone/_internal/bootstrap/base.py b/python/src/endstone/_internal/bootstrap/base.py index 36b7b58f6..ec0595a9f 100644 --- a/python/src/endstone/_internal/bootstrap/base.py +++ b/python/src/endstone/_internal/bootstrap/base.py @@ -189,6 +189,18 @@ def _download(self, dst: Union[str, os.PathLike], url: str, sha256: str) -> None def _download_finished(self) -> None: self.validate() + properties = self.server_path / "server.properties" + with properties.open("r", encoding="utf-8") as file: + lines = file.readlines() + + lines = [ + "server-name=Endstone Server\n" if line.strip() == "server-name=Dedicated Server" else line + for line in lines + ] + + with properties.open("w", encoding="utf-8") as file: + file.writelines(lines) + def install(self) -> None: """ Installs the server if not already installed.