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

Method _launch

MCSL2Lib/ServerControllers/processCreator.py:313–320  ·  view source on GitHub ↗

启动进程

(self)

Source from the content-addressed store, hash-verified

311 MCSL2Logger.info(f"生成 JVM 参数: \n{self.jvmArg}")
312
313 def _launch(self) -> _ServerProcessBridge:
314 """启动进程"""
315 if self.config.serverType == "bedrock":
316 # Bedrock Edition uses direct executable
317 (bridge := _BedrockServerProcessBridge(self.config)).startServer()
318 else:
319 (bridge := _ServerProcessBridge(self.config, self.jvmArg)).startServer()
320 return bridge

Callers 1

startMethod · 0.95

Calls 3

startServerMethod · 0.45

Tested by

no test coverage detected