Added Scoreboard Query Function#56
Open
jkramer5103 wants to merge 1 commit into
Open
Conversation
Author
|
Hello, is this Repo still maintained? |
|
Holy yes please add this. I sent an email a while ago asking about the scoreboard. |
Author
|
Yea I submitted this PR in Late December and still havent heard back, idk if maxuser looks at the PR's, did you get an answer to your mail? |
|
sorry for the late response. Unfortunately no response. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I added the function: get_scoreboard(), which gets the current content of the scoreboard, this is an example output recorded one mcpvp.club:
ScoreboardData(objective_name='{MINECRAFT_USERNAME}-SB', display_name='PVP CLUB', entries=[ScoreboardEntry(name='§a§5§b§0§r', score=9, display_name=' '), ScoreboardEntry(name='§a§5§b§1§r', score=8, display_name='â\udc8fº {MINECRAFT_USERNAME} (EU)'), ScoreboardEntry(name='§a§5§b§2§r', score=7, display_name=' '), ScoreboardEntry(name='§a§5§b§3§r', score=6, display_name='Use 🗡 to queue,'), ScoreboardEntry(name='§a§5§b§4§r', score=5, display_name='or /duel to duel.'), ScoreboardEntry(name='§a§5§b§5§r', score=4, display_name=' '), ScoreboardEntry(name='§a§5§b§6§r', score=3, display_name='⌚ 12/29/2025'), ScoreboardEntry(name='§a§5§b§7§r', score=2, display_name='→ eu-spawn6 (80ms)'), ScoreboardEntry(name='§a§5§b§8§r', score=1, display_name=' '), ScoreboardEntry(name='§a§5§b§9§r', score=0, display_name='mcpvp.club')])
It looks pretty cursed, but that is the content of the scoreboard, with the colors and everything.