MCPcopy Create free account
hub / github.com/MCSLTeam/MCSL2 / acceptEula

Method acceptEula

MCSL2Lib/ServerControllers/processCreator.py:254–259  ·  view source on GitHub ↗

同意Eula

(self)

Source from the content-addressed store, hash-verified

252 return False
253
254 def acceptEula(self):
255 """同意Eula"""
256 writeFile(
257 f"{self.serverDir}/eula.txt",
258 f"# By changing the setting below to TRUE you are indicating your agreement to Mojang EULA (https://aka.ms/MinecraftEULA).\n# Generated by MCSL2. Time: {str(datetime.now().strftime('%Y-%m-%d %H:%M:%S'))}\neula=true", # noqa: E501
259 )
260
261
262class ServerLauncher:

Callers 1

runMethod · 0.80

Calls 1

writeFileFunction · 0.90

Tested by

no test coverage detected