def _players(): """A wrapper for minqlx.Players to make the output more usable.""" ret = [] for player in minqlx.players_info(): d = {} for key in player: if key == "configstring": d.update(minqlx.parse_variables(player["configstring"])) elif key == "userinfo": d.update(minqlx.parse_variables(player["userinfo"])) else: d[key] = player[key] ret.append(d) return ret
def all_players(cls): return [ cls(i, info=info) for i, info in enumerate(minqlx.players_info()) if info ]
def all_players(cls): return [cls(i, info=info) for i, info in enumerate(minqlx.players_info()) if info]