Skip to content

Dev#12

Open
EnderDissa wants to merge 11 commits into
masterfrom
dev
Open

Dev#12
EnderDissa wants to merge 11 commits into
masterfrom
dev

Conversation

@EnderDissa
Copy link
Copy Markdown
Member

No description provided.

fedotow-p and others added 7 commits April 5, 2026 23:12
Added ability to get info about player team when he is in lobby
Get Player team in lobby
material/color/name живут в config.yml: teamselect.teams.<n>, единый источник
правды для GUI выбора, лобби-скорборда и режимов. Добавлен публичный API
TeamStyle/TeamStyleProvider — моды читают стили оттуда вместо хардкода.

v4-миграция: переносит имена из messages.yml: ui.teamselect.teams.<n>.name
в config.yml: teamselect.teams.<n>.name (если в config ещё нет), затем
вырезает legacy-секцию из messages.yml. Existing моды визуально не меняются.

Voicechat-интеграция (TeamGroupManager) использует новый API для имени команды
вместо собственного парсера messages.yml.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Группы распускаются на конце матча: новый MatchResultRecordingEvent
  фаерится из MiniGamesAPI.recordMatchResult, TeamGroupManager сносит
  группы в этот момент (типично — после церемонии). GameInstanceEndedEvent
  остаётся страховкой для модов, не зовущих recordMatchResult.

- JoinGroupEvent guard: в группу пускает только своих участников команды
  и зарегистрированных наблюдателей. TeamGroupManager хранит
  groupOwnerByGroupId / playerOriginalGroup / spectatorAccess; всё
  чистится при teardown. Без паролей — игрок может выйти из группы и
  вернуться (своей) без участия админа.

- Public API на MiniGamesAPI: allowVoiceSpectator/revokeVoiceSpectator
  (мод регистрирует наблюдателей) и findActiveMatchInstance (helper для
  поиска инстанса по игроку). Вызов идёт через VoiceSpectatorRegistry —
  cross-package indirection, чтобы не тянуть de.maxhenkel.* классы на
  серверах без SVC.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
feat: PAPI плейсхолдеры команды
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 20bad1eb94

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +18 to +20
fun onReady(event: GameInstanceReadyEvent) {
if (!TeamGroupManager.isReady()) return
runCatching { TeamGroupManager.assignTeamsToGroups(event.instance) }
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Move voice grouping to actual match start

With SimpleVoiceChat enabled, this handler moves players into isolated team groups as soon as GameInstanceReadyEvent fires, but MatchmakingManager.checkReady fires that event when an instance is only added to readyQueue; the same readiness path can later remove it from the queue if players leave before the mode calls pollReady, and no result/end event is emitted to dissolve the groups. In that cancellation window, lobby players remain stuck in the per-team voice groups even though the match never started, so the grouping should be tied to the actual start/poll path or explicitly unwound when readiness is cancelled.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants