Skip to content

Feat/convenience helpers#44

Merged
ez-plugins merged 3 commits into
mainfrom
feat/convenience-helpers
Jun 5, 2026
Merged

Feat/convenience helpers#44
ez-plugins merged 3 commits into
mainfrom
feat/convenience-helpers

Conversation

@ez-plugins

Copy link
Copy Markdown
Owner

Non-breaking additions. No changes required for existing providers or consumers.

Added

Convenience methods

  • TeamsService.getTeamIds() - returns all team UUIDs for iteration without
    loading full team objects.
  • Team.getOwner() - default method returning the owner's TeamMember record.
  • VelocityTeam.getMemberUUIDs() - returns UUIDs of all members.
  • VelocityTeam.getOwner() - default method returning the owner's record.

Role prefix reset

New resetPrefixOverride() method on both TeamRole and TeamRoleDefinition
clears any active prefix override, restoring the built-in default:

TeamRole.OWNER.setPrefixOverride("[Lord]");
TeamRole.OWNER.resetPrefixOverride(); // back to "Owner"

Equivalent to calling setPrefixOverride(null).

  • TeamsAPI.API_VERSION updated to 2.5.0.

Changed

  • docs/api.md Team lookup section now correctly lists getTeam, getTeamByName,
    and getPlayerTeam alongside getAllTeams, getTeamCount, and getTeamIds.
  • docs/velocity.md updated to document getMemberUUIDs() and getOwner() on
    VelocityTeam.

Migration

No behavioural changes for existing providers or consumers.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
.../java/com/skyblockexp/teamsapi/model/TeamRole.java 0.00% 2 Missing ⚠️
...skyblockexp/teamsapi/model/TeamRoleDefinition.java 0.00% 2 Missing ⚠️
...main/java/com/skyblockexp/teamsapi/model/Team.java 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@ez-plugins ez-plugins merged commit 56ff42e into main Jun 5, 2026
17 checks passed
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.

2 participants