feat: fire PARTY_INVITE_REQUEST event with inviter name

Fire PARTY_INVITE_REQUEST when another player invites the local player
to a group. Used by auto-accept group addons and invite notification
addons. Includes the inviter's name as the first argument.
This commit is contained in:
Kelsi 2026-03-21 07:17:20 -07:00
parent 70a50e45f5
commit d24d12fb8f

View file

@ -20028,6 +20028,8 @@ void GameHandler::handleGroupInvite(network::Packet& packet) {
if (auto* sfx = renderer->getUiSoundManager()) if (auto* sfx = renderer->getUiSoundManager())
sfx->playTargetSelect(); sfx->playTargetSelect();
} }
if (addonEventCallback_)
addonEventCallback_("PARTY_INVITE_REQUEST", {data.inviterName});
} }
void GameHandler::handleGroupDecline(network::Packet& packet) { void GameHandler::handleGroupDecline(network::Packet& packet) {