Skip to content

TeamsAPI 1.6.1

Choose a tag to compare

@github-actions github-actions released this 17 May 22:03
· 41 commits to main since this release
29dee8a

Added

  • TeamRelation.getDisplayName() — returns a human-friendly relation name
    ("Ally", "Truce", "Neutral", "Enemy").
  • TeamRelation.getLegacyColorCode() — returns the legacy Minecraft color code
    character ('a' green, '6' gold, '7' gray, 'c' red) for use in chat
    formatting: "§" + relation.getLegacyColorCode().
  • TeamRelation.getDefaultHexColor() — returns a #RRGGBB hex string suitable
    for Adventure / MiniMessage consumers (#55FF55, #FFAA00, #AAAAAA, #FF5555).
  • TeamsRelationService.getTeamsInRelation(teamId, relation) — default convenience
    method that returns all team UUIDs toward which teamId has declared the given
    relation. Providers may override for a more efficient implementation.
  • TeamsRelationService.getRelationColor(relation) — default method that returns
    the display color for a relation as a #RRGGBB hex string. Providers may override
    to supply server-configured colors; falls back to TeamRelation.getDefaultHexColor().
  • TeamsAPI.API_VERSION bumped to 1.6.1.

Documentation · Modrinth