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

Method start

MCSL2Lib/ServerControllers/processCreator.py:270–281  ·  view source on GitHub ↗

供调用的方法。\n 1.检查Minecraft EULA\n 2.生成开服命令参数\n 3.启动进程

(self)

Source from the content-addressed store, hash-verified

268 self.config = v
269
270 def start(self):
271 """
272 供调用的方法。\n
273 1.检查Minecraft EULA\n
274 2.生成开服命令参数\n
275 3.启动进程
276 """
277 if not (validator := _MinecraftEULA(self.config.serverName)).checkEula():
278 return validator
279 else:
280 self._setJVMArg()
281 return self._launch()
282
283 def _setJVMArg(self):
284 """生成开服命令参数"""

Callers 12

registerThreadMethod · 0.45
registerMethod · 0.45
startServerMethod · 0.45
restartServerMethod · 0.45
closeEventMethod · 0.45
startServerMethod · 0.45
_startAIAnalyzeMethod · 0.45
__init__Method · 0.45
backupServerFunction · 0.45
backupSavesFunction · 0.45
__BeginInstallAsyncMethod · 0.45
__BeginInstallAsyncMethod · 0.45

Calls 4

_setJVMArgMethod · 0.95
_launchMethod · 0.95
_MinecraftEULAClass · 0.85
checkEulaMethod · 0.80

Tested by

no test coverage detected