8000 Custom pool cycle times by applenick · Pull Request #890 · PGMDev/PGM · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Custom pool cycle times #890

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

Merged
merged 4 commits into from
Jun 20, 2021
Merged

Custom pool cycle times #890

merged 4 commits into from
Jun 20, 2021

Conversation

applenick
Copy link
Member
@applenick applenick commented Jun 18, 2021

Custom pool cycle times

This PR allows for map pools to have custom cycle times defined in the map-pools.yml

Example map-pools.yml

pools:
  tnt:
    type: ordered
    cycle-time: 15s   # The match would cycle after 15 seconds instead of 30 in this example
    players: 1
    maps:
    - cos(tnt)
    ...

Also I included a commit which bumps adventure to 4.8.1 which resolves an error when trying to build. Not sure if it was fine to combine the two, but it saved some time. Let me know if you want a separate PR for that.

The changes to map pools have been tested and work as intended 👍

Signed-off-by: applenick applenick@users.noreply.github.com

Signed-off-by: applenick <applenick@users.noreply.github.com>
* Allow each map pool to define a custom cycle-time. When none is set or the duration is negative, pools will default to what is defined in config.yml

Signed-off-by: applenick <applenick@users.noreply.github.com>
@applenick applenick requested a review from Electroid as a code owner June 18, 2021 02:15
Signed-off-by: applenick <applenick@users.noreply.github.com>
Signed-off-by: applenick <applenick@users.noreply.github.com>
@Electroid Electroid enabled auto-merge (squash) June 20, 2021 22:30
@Electroid Electroid disabled auto-merge June 20, 2021 22:31
@Electroid Electroid merged commit 99818dd into PGMDev:dev Jun 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0