-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Remove player from game and queue if they are moved to spectator #126
Conversation
These changes look great, are you able to move this logic into the relevant manager, I think I have separate team management logic in one of those where this code should be. If it can’t go there and it must go here then we can, I would also like to add a config option to give people the choice for how they would like to handle this. Basically just put it in an if statement with a config variable check. |
Hope this resolves your comment, was unsure where to place the function but currently I put it in the GameManager class as it best fits there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor tweaks, once those are addressed I'll make a release. Also please bump the plugin version const to 2.0.3
in RetakesPlugin.cs
Bumped to 2.0.5 instead of 2.0.3 as we are on 2.0.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well spotted with the version, two minor tweaks and it’s good to merge.
I made these changes to ensure it is compatible with a plugin such as AFKManager which only moves a player to spectator and has no way of knowing how to dequeue a player. Without this change players will be moved to spectator and then moved back into a team and actually never get kicked if you do not use an overly aggressive afk kick of 15 seconds without spectator. I made this for personal use but thought it might be benefit others