Closed Monarchdos closed 1 month ago
Describe the bug Can't get player scoreboard value correctly!
To Reproduce board = args[0].strip('"') objective = self.server.scoreboard.get_objective(board) score = objective.get_score(sender.name) sender.send_message(f"{score.value}") self.logger.info(f"Score: player={sender.name}, objective={objective.name}, value={score.value}, is_set={score.is_score_set}")
Screenshots
Details (please complete the following information):
Try using sender instead of sender.name
Describe the bug Can't get player scoreboard value correctly!
To Reproduce board = args[0].strip('"') objective = self.server.scoreboard.get_objective(board) score = objective.get_score(sender.name) sender.send_message(f"{score.value}") self.logger.info(f"Score: player={sender.name}, objective={objective.name}, value={score.value}, is_set={score.is_score_set}")
Screenshots
Details (please complete the following information):