mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Make /factorio {factorio_command} no longer silent, even if /sc is used.
This commit is contained in:
@@ -40,6 +40,8 @@ class FactorioCommandProcessor(ClientCommandProcessor):
|
|||||||
def _cmd_factorio(self, text: str) -> bool:
|
def _cmd_factorio(self, text: str) -> bool:
|
||||||
"""Send the following command to the bound Factorio Server."""
|
"""Send the following command to the bound Factorio Server."""
|
||||||
if self.ctx.rcon_client:
|
if self.ctx.rcon_client:
|
||||||
|
# TODO: Print the command non-silently only for race seeds, or otherwise block anything but /factorio /save in race seeds.
|
||||||
|
self.ctx.print_to_game(f"/factorio {text}")
|
||||||
result = self.ctx.rcon_client.send_command(text)
|
result = self.ctx.rcon_client.send_command(text)
|
||||||
if result:
|
if result:
|
||||||
self.output(result)
|
self.output(result)
|
||||||
|
Reference in New Issue
Block a user