▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Teams API
Teams API

Teams API

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

20
0
Все версииTeams API 1.1.0

Teams API 1.1.0

Release1 нед. назад

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

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-plugin-1.1.0.jar(18.49 KiB)
Основной
Скачать

Метаданные

Канал релиза

Release

Номер версии

1.1.0

Загрузчики

Bukkit
Paper
Purpur
Spigot

Версии игры

26.1–26.1.2

Загрузок

2

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

1 нед. назад

Загрузил

ID версии

Главная