feat: add PLAYER_EVENT_ON_CAN_GROUP_INVITE (#100)

This commit is contained in:
Axel Cocat
2023-03-01 10:33:12 +01:00
committed by GitHub
parent 53514a228b
commit 85714c1123
6 changed files with 18 additions and 1 deletions

View File

@@ -670,3 +670,11 @@ void Eluna::OnPlayerCompleteQuest(Player* player, Quest const* quest)
Push(quest);
CallAllFunctions(PlayerEventBindings, key);
}
bool Eluna::OnCanGroupInvite(Player* player, std::string& memberName)
{
START_HOOK_WITH_RETVAL(PLAYER_EVENT_ON_CAN_GROUP_INVITE, true);
Push(player);
Push(memberName);
return CallAllFunctionsBool(PlayerEventBindings, key);
}