Factorio: Allow connecting and entering slot name in one command; /connect server_address slot_name
This commit is contained in:
parent
ea15f221ae
commit
7f3c46dd8a
|
@ -48,6 +48,11 @@ class FactorioCommandProcessor(ClientCommandProcessor):
|
||||||
return True
|
return True
|
||||||
return False
|
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):
|
class FactorioContext(CommonContext):
|
||||||
command_processor = FactorioCommandProcessor
|
command_processor = FactorioCommandProcessor
|
||||||
|
|
Loading…
Reference in New Issue