Skip to content

Player - Expose player score#12243

Merged
Machine-Maker merged 3 commits intoPaperMC:mainfrom
ShaneBeee:shane/death-screen-score
Mar 8, 2025
Merged

Player - Expose player score#12243
Machine-Maker merged 3 commits intoPaperMC:mainfrom
ShaneBeee:shane/death-screen-score

Conversation

@ShaneBeee
Copy link
Contributor

@ShaneBeee ShaneBeee commented Mar 8, 2025

This PR aims to expose NMS Player#getScore() and its derivatives.

This score is show in the death screen of the player.
The name was suggested/discussed with @Owen1212055 on discord.
Chose to use get/setDeathScreenScore to prevent confusion/collision with Scoreboard/Objective getScore()

Credit goes to Owen for the idea.
(Could have sworn this was already in the API, but nope)

@ShaneBeee ShaneBeee requested a review from a team as a code owner March 8, 2025 07:00
@github-project-automation github-project-automation bot moved this to Awaiting review in Paper PR Queue Mar 8, 2025
@Owen1212055
Copy link
Member

I don't think we need increase. Get/set seems fine since this really won't be used frequently enough. LGTM

@github-project-automation github-project-automation bot moved this from Awaiting review to Awaiting final testing in Paper PR Queue Mar 8, 2025
@Machine-Maker Machine-Maker merged commit 8e69d98 into PaperMC:main Mar 8, 2025
3 checks passed
@github-project-automation github-project-automation bot moved this from Awaiting final testing to Merged in Paper PR Queue Mar 8, 2025
@ShaneBeee ShaneBeee deleted the shane/death-screen-score branch March 8, 2025 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

4 participants