Tags
Creators
Details
2.0.0-bungee
Compatibility
Changes
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.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:2NJKwgXC:eO0yGXJc"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:2NJKwgXC:eO0yGXJc"
}

