FAForever / fa

Lua code for FAF
221 stars 228 forks source link

Update and add moderator events #6233

Closed Garanas closed 3 weeks ago

Garanas commented 3 weeks ago

Description of the proposed changes

Moderator events are now delayed by 2 seconds by default. This is to prevent the generation of events as players are trying to disconnect. During local testing the events would show for the player leaving, but not for the players still in-game.

Adds a new moderator event: everything that is passed into GpgNetSend is also turned into a moderator event. This way we know what people are (not) sending to the server.

Testing done on the proposed changes

Run local multiplayer games.

Additional context

Related to https://github.com/FAForever/faf-java-commons/issues/121

Checklist