Dev#12
Conversation
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 плейсхолдеры команды
There was a problem hiding this comment.
💡 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".
| fun onReady(event: GameInstanceReadyEvent) { | ||
| if (!TeamGroupManager.isReady()) return | ||
| runCatching { TeamGroupManager.assignTeamsToGroups(event.instance) } |
There was a problem hiding this comment.
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 👍 / 👎.
No description provided.