add identifiers (beammp id, ip) as an argument to onPlayerAuth

This commit is contained in:
Lion Kortlepel
2022-10-03 15:31:32 +02:00
parent cb0cb30797
commit 5d3dff3c88
4 changed files with 14 additions and 2 deletions

View File

@@ -355,7 +355,7 @@ void TNetwork::Authentication(const TConnection& ClientConnection) {
return true;
});
auto Futures = LuaAPI::MP::Engine->TriggerEvent("onPlayerAuth", "", Client->GetName(), Client->GetRoles(), Client->IsGuest());
auto Futures = LuaAPI::MP::Engine->TriggerEvent("onPlayerAuth", "", Client->GetName(), Client->GetRoles(), Client->IsGuest(), Client->GetIdentifiers());
TLuaEngine::WaitForAll(Futures);
bool NotAllowed = std::any_of(Futures.begin(), Futures.end(),
[](const std::shared_ptr<TLuaResult>& Result) {