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'sTeamMemberrecord.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_VERSIONupdated to2.5.0.
Changed
docs/api.mdTeam lookup section now correctly listsgetTeam,getTeamByName,
andgetPlayerTeamalongsidegetAllTeams,getTeamCount, andgetTeamIds.docs/velocity.mdupdated to documentgetMemberUUIDs()andgetOwner()on
VelocityTeam.
Migration
No behavioural changes for existing providers or consumers.