Unofficial site, not affiliated with modrinth.com.What is this?
Плагины/Teams API
Все версииTeamsAPI 2.0.0

TeamsAPI 2.0.0

Release3 нед. назад

Список изменений

Added

  • TeamRelation.MEMBER constant (ordinal 4) representing the same-team relationship. Providers should return MEMBER from getRelation(A, A) when both team UUIDs are equal. Consumers comparing two players on potentially the same team will now receive a dedicated constant instead of NEUTRAL.
  • TeamRelation internal hostilityLevel field. isMoreHostileThan() now uses this field instead of ordinal position, correctly placing MEMBER at hostility level -1 (less hostile than ALLY). Results for the original four constants are unchanged.
  • isFriendly() now returns true for MEMBER in addition to ALLY and TRUCE.
  • TeamsAPI.API_VERSION bumped to 2.0.0.

Changed

  • ALLY default color: §a (green / #55FF55) → §b (aqua / #55FFFF). This aligns with the standard Factions color convention where green represents same-team membership.
  • TRUCE default color: §6 (gold / #FFAA00) → §e (yellow / #FFFF55). Aligns legacy code character with MiniMessage <yellow>.

Migration

The four original ordinals (ALLY=0, TRUCE=1, NEUTRAL=2, ENEMY=3) are unchanged. Code that does not reference MEMBER and does not depend on the specific color values of ALLY or TRUCE requires no changes.

Consumers that use ALLY or TRUCE default colors (via getLegacyColorCode(), getDefaultHexColor(), or TeamsRelationService.getRelationColor()) should update their color expectations accordingly. Providers that configure their own colors via getRelationColor() overrides are unaffected.

Метаданные

Канал релиза

Release

Номер версии

2.0.0

Загрузчики

Bukkit
Folia
Paper
Purpur
Spigot

Версии игры

1.16–26.1.2

Загрузок

37

Дата публикации

3 нед. назад

Загрузил

ID версии

Главная