make players command only output to the player requesting if there's 10 or more players

This commit is contained in:
Fabian Dill 2020-04-20 23:03:52 +02:00
parent 905714adfe
commit 356ff91cfd
1 changed files with 4 additions and 1 deletions

View File

@ -451,7 +451,10 @@ class ClientMessageProcessor(CommandProcessor):
def _cmd_players(self):
"""Get information about connected and missing players"""
if len(self.ctx.player_names) < 10:
notify_all(self.ctx, get_players_string(self.ctx))
else:
self.output(get_players_string(self.ctx))
def _cmd_forfeit(self):
"""Surrender and send your remaining items out to their recipients"""