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

Allow startInstant to be modified after the state started #1

Open
SimplyMerlin opened this issue Apr 18, 2021 · 2 comments
Open

Allow startInstant to be modified after the state started #1

SimplyMerlin opened this issue Apr 18, 2021 · 2 comments

Comments

@SimplyMerlin
Copy link

Hey,

I've been looking for a way to change the duration of a state while it already started. Think of for example cubecraft's pregame timer going down to 10 seconds when a certain amount of people hava joined. Could this be implemented in anyway? I made a not so elegant solution for this problem in a fork simply by just making startInstant to be modified (which then allows you to change startInstant to Instant.now() and then set the Duration to whatever you want for a new countdown). I assume there are way better ways to implement this.

TL;DR allow resetting and modifying the duration of a state after it already started

thanks.

@Minikloon
Copy link
Owner

The project is too old. I don't think I will personally change it.

@vhagedorn
Copy link

maybe he'll merge it if you make a pr

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

No branches or pull requests

3 participants