Skip to content

vote and restart improvements#18728

Open
Lumipharon wants to merge 7 commits into
tgstation:masterfrom
Lumipharon:vote_stuff
Open

vote and restart improvements#18728
Lumipharon wants to merge 7 commits into
tgstation:masterfrom
Lumipharon:vote_stuff

Conversation

@Lumipharon

@Lumipharon Lumipharon commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

About The Pull Request

Test this shit before merge

Refactored how gamemode/map votes are done at the end of the round, and how the server restarts.

Added a visible restart timer so people can see exactly when the server is going to restart (or if its delayed).

Also made the vote system announce automatic vote results (i.e. where there was only 1 valid outcome) so players actually see what's going on.

For admins:
We now have 3 distinct server verbs.
Cancel restart - cancels the restart timer.
Set restart timer - lets you set a custom restart time (overriding an existing one if it exists), max of 10 minutes.
Delay Round end - Toggles on and off. Stops server autorestart timer from triggering, and cancels any existing timer.

Each time a gamemode vote is done in the post game, map votes will be autotriggered afterwards. This includes admin forced votes. The reboot timer is updated when votes are done - this means lifting the round end delay will set a reboot timer automatically once the next vote is finished, but also means the delay isn't drawn out if certain votes aren't needed (i.e. hvh modes where there's only one choice etc).

Why It's Good For The Game

Better visibility, hopefully less prone to shitting itself.

Changelog

🆑
qol: Added visibility for when the server is going to restart
refactor: refactored some code relating to end of round votes and restarts
admin: Added more server verbs relating to server restarts
/:cl:

@github-actions github-actions Bot added Refactor Improves underlying code to make systems more modular and functional. Administration Alters the administrative tools used in-game. Quality of Life Minor changes that make the game nicer to play labels Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Administration Alters the administrative tools used in-game. Quality of Life Minor changes that make the game nicer to play Refactor Improves underlying code to make systems more modular and functional.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant