Added the reject_recently_left_players plugin into the base game #628
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Steps
make preflight
completes successfully.Description
Imagine killing someone, them having to wait 7 seconds to respawn, and they just disconnect and reconnect and they're able to hop in the game immediately without having to wait even a second.
Originally a plugin by @rikkolovescats, this PR disallows any pb-id from joining the session for 10 seconds once the player leaves the session, this system works like the system in the c-layer that disallows people from joining for 10 seconds after they leave, but this system supports disconnections and reconnections, allowing a fair game.
It's also worth noting that this system does not stop people from joining if authenticate_clients is set to false in the config and the player sends a join request to the server before the server fetches the pb-id, this is intentional as the server has requested the client to not be authenticated.
Type of Changes