mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
rename get_connected_players_string
This commit is contained in:
@@ -210,7 +210,7 @@ async def countdown(ctx: Context, timer):
|
|||||||
await asyncio.sleep(1)
|
await asyncio.sleep(1)
|
||||||
notify_all(ctx, f'[Server]: GO')
|
notify_all(ctx, f'[Server]: GO')
|
||||||
|
|
||||||
def get_connected_players_string(ctx: Context):
|
def get_players_string(ctx: Context):
|
||||||
auth_clients = {(c.team, c.slot) for c in ctx.clients if c.auth}
|
auth_clients = {(c.team, c.slot) for c in ctx.clients if c.auth}
|
||||||
|
|
||||||
player_names = sorted(ctx.player_names.keys())
|
player_names = sorted(ctx.player_names.keys())
|
||||||
@@ -441,7 +441,7 @@ class ClientMessageProcessor(CommandProcessor):
|
|||||||
|
|
||||||
def _cmd_players(self):
|
def _cmd_players(self):
|
||||||
"""Get information about connected and missing players"""
|
"""Get information about connected and missing players"""
|
||||||
notify_all(self.ctx, get_connected_players_string(self.ctx))
|
notify_all(self.ctx, get_players_string(self.ctx))
|
||||||
|
|
||||||
def _cmd_forfeit(self):
|
def _cmd_forfeit(self):
|
||||||
"""Surrender and send your remaining items out to their recipients"""
|
"""Surrender and send your remaining items out to their recipients"""
|
||||||
@@ -655,7 +655,7 @@ class ServerCommandProcessor(CommandProcessor):
|
|||||||
|
|
||||||
def _cmd_players(self):
|
def _cmd_players(self):
|
||||||
"""Get information about connected players"""
|
"""Get information about connected players"""
|
||||||
self.output(get_connected_players_string(self.ctx))
|
self.output(get_players_string(self.ctx))
|
||||||
|
|
||||||
def _cmd_exit(self):
|
def _cmd_exit(self):
|
||||||
"""Shutdown the server"""
|
"""Shutdown the server"""
|
||||||
|
Reference in New Issue
Block a user