
Teams API
TeamsAPI is a passive, server-side bridge plugin for Minecraft servers, inspired by Vault
375
2
TeamsAPI 2.0.0 (Velocity) [Experimental]
Beta3 нед. назад
Список изменений
Added
TeamRelation.MEMBERconstant (ordinal 4) representing the same-team relationship. Providers should returnMEMBERfromgetRelation(A, A)when both team UUIDs are equal. Consumers comparing two players on potentially the same team will now receive a dedicated constant instead ofNEUTRAL.TeamRelationinternalhostilityLevelfield.isMoreHostileThan()now uses this field instead of ordinal position, correctly placingMEMBERat hostility level -1 (less hostile thanALLY). Results for the original four constants are unchanged.isFriendly()now returnstrueforMEMBERin addition toALLYandTRUCE.TeamsAPI.API_VERSIONbumped to2.0.0.
Changed
ALLYdefault color:§a(green /#55FF55) →§b(aqua /#55FFFF). This aligns with the standard Factions color convention where green represents same-team membership.TRUCEdefault 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.
Метаданные
Канал релиза
Beta
Номер версии
2.0.0-velocity
Загрузчики
Velocity
Версии игры
1.16–26.1.2
Загрузок
2
Дата публикации
3 нед. назад
