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

Method startServer

MCSL2Lib/Pages/serverManagerPage.py:1503–1531  ·  view source on GitHub ↗
(self, index, isEditingConfig=False)

Source from the content-addressed store, hash-verified

1501 )
1502
1503 def startServer(self, index, isEditingConfig=False):
1504 v = ServerConfigConstructor.loadServerConfig(index=index)
1505 if not isEditingConfig:
1506 (
1507 w := ServerWindow(
1508 v,
1509 ServerLauncher(v),
1510 manageBtn=self.sender(),
1511 manageBackupBtnList=self.sender()
1512 .parent()
1513 .parent()
1514 .actionsCommandBar.backupActionsList,
1515 isEditingConfig=isEditingConfig,
1516 )
1517 ).show()
1518 else:
1519 (
1520 w := ServerWindow(
1521 v,
1522 ServerLauncher(v),
1523 manageBtn=self.sender().parent().parent().parent().runBtn,
1524 manageBackupBtnList=self.sender().parent().backupActionsList,
1525 isEditingConfig=isEditingConfig,
1526 )
1527 ).show()
1528 w.monitorWidget = RunningServerHeaderCardWidget(
1529 serverName=v.serverName, serverConsole=w
1530 ).itSelf
1531 self.runningServerCardGenerated.emit(w.monitorWidget)
1532
1533 # ==================== Server Save Methods ====================
1534 # These methods are shared between configurePage and serverManagerPage

Callers 1

scrollAreaProcessorMethod · 0.95

Calls 5

ServerWindowClass · 0.90
ServerLauncherClass · 0.90
loadServerConfigMethod · 0.80
parentMethod · 0.45

Tested by

no test coverage detected