Jump to content

Recommended Posts

Posted

Hello, I was wondering how you would get a Score from a Scoreboard without knowing the player's name. For example if you wanted to simply get a list of the Scores in a Scoreboard. I know that there is a method that returns exactly this, but it's return type is just Collection so I can't perform any methods from the Score class on it. Thank you in advance

Posted

Always specify the Minecraft version you're using in the thread title.

 

Scoreboard#func_96528_e

/

getScores

returns a

Collection

of the

Scoreboard

's

Score

s. In 1.8.8+, the method returns a

Collection<Score>

rather than a raw

Collection

.

 

I suggest updating to 1.9 if you're not already using it.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.