def on_mcdr_start(self): self.task_executor.start() self.task_executor.add_task(self.load_plugins) self.task_executor.wait_till_finish_all_task() if not self.config['disable_console_thread']: self.console_handler.start() else: self.logger.info(self.tr('mcdr_server.on_mcdr_start.console_disabled')) if not self.start_server(): raise ServerStartError() self.server_handler_manager.start_handler_detection() self.set_mcdr_state(MCDReforgedState.RUNNING)
def on_mcdr_start(self): self.task_executor.start() self.task_executor.enqueue_regular_task(self.load_plugins) self.task_executor.wait_till_finish_all_task() self.plugin_manager.dispatch_event(MCDRPluginEvents.MCDR_START, ()) if not self.config['disable_console_thread']: self.console_handler.start() else: self.logger.info(self.tr('mcdr_server.on_mcdr_start.console_disabled')) if not self.start_server(): raise ServerStartError() self.update_helper.start() self.watch_dog.start() self.server_handler_manager.start_handler_detection() self.set_mcdr_state(MCDReforgedState.RUNNING)
def __on_mcdr_start(self): self.watch_dog.start() self.task_executor.start() self.preference_manager.load_preferences() self.plugin_manager.register_permanent_plugins() self.task_executor.execute_on_thread(self.load_plugins, block=True) self.plugin_manager.dispatch_event(MCDRPluginEvents.MCDR_START, ()) if not self.config['disable_console_thread']: self.console_handler.start() else: self.logger.info(self.tr('mcdr_server.on_mcdr_start.console_disabled')) if not self.start_server(): raise ServerStartError() self.update_helper.start() self.server_handler_manager.start_handler_detection() self.set_mcdr_state(MCDReforgedState.RUNNING)