feat(Core/Commands): add .group invites command to toggle accepting g… (#26370)

Co-authored-by: Skjalf <47818697+Nyeriah@users.noreply.github.com>
This commit is contained in:
Kitzunu
2026-07-18 20:08:23 +02:00
committed by GitHub
parent d5e98542dd
commit b0e914ac45
7 changed files with 51 additions and 2 deletions
@@ -108,6 +108,13 @@ void WorldSession::HandleGroupInviteOpcode(WorldPacket& recvData)
return;
}
// target has opted out of receiving group invites
if (!invitedPlayer->IsAcceptGroupInvites())
{
SendPartyResult(PARTY_OP_INVITE, membername, ERR_BAD_PLAYER_NAME_S);
return;
}
// can't group with
if (!invitingPlayer->IsGameMaster() && !sWorld->getBoolConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP) && invitingPlayer->GetTeamId() != invitedPlayer->GetTeamId())
{