mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-04 14:56:04 +00:00
add ID parameter to onPlayerRequestMods and update Changelog.md
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
- ADDED `debug` command, which shows info about connected clients & networking (for developers)
|
||||
- ADDED `Util.GenerateUUID()`, which generates an RFC4122 UUID (universally unique identifier)
|
||||
- ADDED `version` command, which shows version information
|
||||
- ADDED `onPlayerRequestMods` event, letting Lua disallow individual mods from being sent to clients
|
||||
- CHANGED `onShutdown` to be called before all players are kicked
|
||||
|
||||
# v3.1.1
|
||||
|
||||
@@ -617,7 +617,7 @@ void TNetwork::SyncResources(TClient& c) {
|
||||
ModMap TNetwork::GetClientMods(TClient& Client) {
|
||||
auto AllMods = mResourceManager.FileMap();
|
||||
|
||||
auto Futures = LuaAPI::MP::Engine->TriggerEvent("onPlayerRequestMods", "", Client.GetName(), Client.GetRoles(), Client.IsGuest(), Client.GetIdentifiers(), AllMods);
|
||||
auto Futures = LuaAPI::MP::Engine->TriggerEvent("onPlayerRequestMods", "", Client.GetName(), Client.GetRoles(), Client.IsGuest(), Client.GetIdentifiers(), Client.GetID(), AllMods);
|
||||
TLuaEngine::WaitForAll(Futures);
|
||||
|
||||
ModMap AllowedMods = AllMods;
|
||||
|
||||
Reference in New Issue
Block a user