mirror of
https://github.com/onyx-and-iris/q3rcon-cli.git
synced 2026-04-13 04:23:38 +00:00
print success messages instead boxed output on cvar change
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from aioq3rcon import Client
|
||||
from clypi import Command, Positional, arg
|
||||
from clypi import Command, Positional, arg, cprint
|
||||
from typing_extensions import override
|
||||
|
||||
from q3rcon_cli import console
|
||||
@@ -26,5 +26,5 @@ class Hostname(Command):
|
||||
|
||||
async with Client(self.host, self.port, self.password) as client:
|
||||
await client.send_command(f'sv_hostname {self.new_hostname}')
|
||||
if response := await client.send_command('sv_hostname'):
|
||||
console.out.print_cvar(response)
|
||||
|
||||
cprint(f'Hostname changed to: {self.new_hostname}', fg='green')
|
||||
|
||||
Reference in New Issue
Block a user