Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - Idle Spectator kick timeout #65

Open
shadowze opened this issue Jul 7, 2021 · 3 comments
Open

Feature Request - Idle Spectator kick timeout #65

shadowze opened this issue Jul 7, 2021 · 3 comments
Assignees

Comments

@shadowze
Copy link

shadowze commented Jul 7, 2021

I would like to be able to set a spectator timeout config value that operates like this
spectator.idle.timeout = 180 -- in seconds

If a player has connected to the server and sits in the lobby for longer than the above value they get auto kicked from the server

many thanks

@mrSkortch mrSkortch self-assigned this Jul 7, 2021
@mrSkortch
Copy link
Owner

It is doable. A possible problem point is that I don't think there is any callback for when a player finished loading and could select a slot. As a result there would have to be time added to account for loading into the server. It would probably be a good idea to have two settings, one for time after they connect and another for after they choose a slot and switch back to spectators.

@shadowze
Copy link
Author

shadowze commented Jul 8, 2021

those are good points to consider, is it possible to know if a player is in a slot by performing some sort of query?

@mrSkortch
Copy link
Owner

Joining slots has callbacks so it can be detected immediately. Its just the loading time + whenever they decide to join a slot that is an unknown. Should even be possible to track/kick if they are in a slot but not spawned yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants