Unofficial site, not affiliated with modrinth.com.What is this?
Плагины/Teams API
Teams API

Teams API

TeamsAPI is a passive, server-side bridge plugin for Paper servers, inspired by Vault

3
0

Teams API 1.1.0

release4 мая 2026 г.

What's new in 1.1.0 - Team Invite API

New: TeamsInviteService interface

An optional, independent service interface for team invitation flows. Providers that support invitations register an implementation separately via TeamsAPI.registerInviteProvider(). Existing TeamsService implementations are not required to support it; the API degrades gracefully when no invite provider is registered.

Methods:

  • invitePlayer(UUID teamId, UUID inviterUUID, UUID inviteeUUID) → boolean
  • acceptInvite(UUID teamId, UUID playerUUID) → Optional<Team>
  • declineInvite(UUID teamId, UUID playerUUID) → boolean

New: invite provider management on TeamsAPI

  • TeamsAPI.getInviteService() - returns the registered TeamsInviteService, or null
  • TeamsAPI.isInviteAvailable() - returns true if an invite provider is registered
  • TeamsAPI.registerInviteProvider(Plugin, TeamsInviteService) - registers at Normal priority
  • TeamsAPI.registerInviteProvider(Plugin, TeamsInviteService, ServicePriority) - registers at a custom priority
  • TeamsAPI.unregisterInviteProvider(TeamsInviteService) - unregisters the provider on disable

All methods follow the existing null-safety contract (null arguments are silently ignored).

New events

EventCancellableWhen fired
TeamInviteEventYesBefore an invitation is recorded. Cancel to block it.
TeamInviteAcceptEventNoAfter the player has joined the team.
TeamInviteDeclineEventNoAfter the pending invitation has been removed.

Teams API 1.0.1

release20 апреля 2026 г.

Initial release of TeamsAPI, a universal, provider-agnostic bridge plugin for Paper servers, modelled on Vault.


What is TeamsAPI?

TeamsAPI decouples plugins that provide team data (faction, clan, guild plugins) from plugins that consume it (scoreboards, chat formatters, quest systems). Neither side needs to know about the other. When the team plugin changes, every consumer keeps working without a recompile.


API highlights

  • TeamsAPI static facade — getService(), isAvailable(), registerProvider(), unregisterProvider()
  • TeamsService interface — team lifecycle, lookup, membership management, and predicate helpers
  • Team / TeamMember — read-only snapshot interfaces; providers own the backing data
  • TeamRole enum — OWNER (100) › ADMIN (50) › MEMBER (10) with outranks() and canManage()
  • 5 cancellable eventsTeamCreateEvent, TeamDeleteEvent, TeamJoinEvent, TeamLeaveEvent, TeamRoleChangeEvent
  • Graceful fallback — if no provider is registered, isAvailable() returns false and all facade methods return safe empty/false values

Requirements

  • Paper 26.1+
  • Java 25+

Installation

Drop teams-api-plugin-1.0.0.jar into your server's plugins/ folder alongside a compatible team plugin, then restart.


For developers

Add the API to your project via JitPack:

  • Maven - com.github.ez-plugins:teams-api:1.0.1 (scope provided)
  • Gradle - compileOnly 'com.github.ez-plugins:teams-api:1.0.1'

See the Developer Guide for provider and consumer integration walkthroughs, and the API Reference for full method tables.

Совместимость

Minecraft: Java Edition

26.1.x

Платформы

Поддерживаемые окружения

Сервер

Создатели

Детали

Лицензия:MIT
Опубликован:2 недели назад
Обновлён:15 часов назад
Главная