Skip to content

Comments

add optional time limit#28

Open
RasmusAntons wants to merge 4 commits intoGaming32:mainfrom
RasmusAntons:time_limit
Open

add optional time limit#28
RasmusAntons wants to merge 4 commits intoGaming32:mainfrom
RasmusAntons:time_limit

Conversation

@RasmusAntons
Copy link
Contributor

This adds another start parameter --time <total time in minutes> and a new command bingo time set <remaining time in minutes> to set a countdown that will end the game when it reaches 0.

For modded clients, the countdown is shown below the board, for vanilla clients it's shown as a boss bar.

image
image

I don't know if the command syntax is ideal, i thought about having a more elaborate command like --time <value> <time unit>.

I had to convert the ClientGame record into a class which might be a bit messy.

closes #27

@RasmusAntons RasmusAntons marked this pull request as draft January 29, 2025 16:33
@RasmusAntons RasmusAntons marked this pull request as ready for review February 7, 2025 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a time limit option

2 participants