Network remove roominfo players (#661)

This commit is contained in:
Fabian Dill
2022-06-17 03:34:50 +02:00
committed by GitHub
parent 74fe03414c
commit 247f674749
3 changed files with 6 additions and 6 deletions

View File

@@ -540,14 +540,14 @@ async def process_server_cmd(ctx: CommonContext, args: dict):
f" for each location checked. Use !hint for more information.")
ctx.hint_cost = int(args['hint_cost'])
ctx.check_points = int(args['location_check_points'])
if len(args['players']) < 1:
players = args.get("players", [])
if len(players) < 1:
logger.info('No player connected')
else:
args['players'].sort()
players.sort()
current_team = -1
logger.info('Connected Players:')
for network_player in args['players']:
for network_player in players:
if network_player.team != current_team:
logger.info(f' Team #{network_player.team + 1}')
current_team = network_player.team