Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scoreboard refactor #121

Merged
merged 3 commits into from
Apr 10, 2024
Merged

Conversation

camnwalter
Copy link
Member

@camnwalter camnwalter commented Mar 26, 2024

Adds mutability to Scoreboard.Score among these other changes: (added unless otherwise stated)

Team:
- getColor
- setColor
Scoreboard:
- addLine
- createTeam
- removeIndex
- removeScores
Scoreboard.Score:
- getName changed to return String. made to be more consistent with other CT Apis, though could change those instead to return TextComponents
- getNumberFormat
- getTeam
- remove
- setName
- setNumberFormat
- setPoints
- setTeam

This is a big one so I will have to test this some more to make sure it's working correctly.
To do:

@camnwalter camnwalter force-pushed the scoreboard-refactor branch 2 times, most recently from d3cad4e to d0b8530 Compare March 30, 2024 19:15
@camnwalter camnwalter marked this pull request as draft March 30, 2024 19:38
@camnwalter camnwalter marked this pull request as ready for review March 31, 2024 00:36
Adds mutability to Scoreboard.Score among these other changes: (added unless otherwise stated)

Team:
	- getColor
	- setColor
Scoreboard:
	- addLine
	- createTeam
	- removeIndex
	- removeScores
Scoreboard.Score:
	- getNumberFormat
	- getTeam
	- remove
	- setName
	- setNumberFormat
	- setPoints
	- setTeam
@mattco98 mattco98 merged commit 5dc54f0 into ChatTriggers:main Apr 10, 2024
1 check passed
@camnwalter camnwalter deleted the scoreboard-refactor branch April 11, 2024 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve the Scoreboard API
2 participants