Factorio: Allow connecting and entering slot name in one command; /connect server_address slot_name

This commit is contained in:
Fabian Dill 2021-04-10 15:29:56 +02:00
parent ea15f221ae
commit 7f3c46dd8a
1 changed files with 5 additions and 0 deletions

View File

@ -48,6 +48,11 @@ class FactorioCommandProcessor(ClientCommandProcessor):
return True
return False
def _cmd_connect(self, address: str = "", name="") -> bool:
"""Connect to a MultiWorld Server"""
self.ctx.auth = name
return super(FactorioCommandProcessor, self)._cmd_connect(address)
class FactorioContext(CommonContext):
command_processor = FactorioCommandProcessor