mirror of
https://github.com/onyx-and-iris/q3rcon-cli.git
synced 2026-04-13 04:23:38 +00:00
add maprestart command
This commit is contained in:
@@ -9,6 +9,7 @@ from .commands import (
|
||||
Hostname,
|
||||
Map,
|
||||
Mapname,
|
||||
Maprestart,
|
||||
Maprotate,
|
||||
Plugins,
|
||||
Status,
|
||||
@@ -16,7 +17,15 @@ from .commands import (
|
||||
from .console import Console
|
||||
|
||||
Subcommands = (
|
||||
Status | Mapname | Maprotate | Fastrestart | Gametype | Hostname | Map | Plugins
|
||||
Fastrestart
|
||||
| Gametype
|
||||
| Hostname
|
||||
| Map
|
||||
| Mapname
|
||||
| Maprestart
|
||||
| Maprotate
|
||||
| Plugins
|
||||
| Status
|
||||
)
|
||||
|
||||
|
||||
@@ -54,7 +63,7 @@ class Q3rconCli(Command):
|
||||
if self.interactive:
|
||||
await self.run_interactive()
|
||||
else:
|
||||
await Status.run(self)
|
||||
await Status(self.host, self.port, self.password).run()
|
||||
|
||||
async def run_interactive(self):
|
||||
print(
|
||||
|
||||
Reference in New Issue
Block a user