Skip to content

Add option to create N backups when there are no players#68

Merged
MelanX merged 2 commits into1.21.1from
feature/no-player-backups-21.1
Jan 12, 2026
Merged

Add option to create N backups when there are no players#68
MelanX merged 2 commits into1.21.1from
feature/no-player-backups-21.1

Conversation

@MelanX
Copy link
Copy Markdown
Collaborator

@MelanX MelanX commented Dec 11, 2025

This pull request introduces the feature to set an amount of backups that should be created after the last player left the world - noPlayerBackupCount. It defaults to 1 which was the default behavior before. That means, that the next backup will still be created. After this, no backups are made unless a player joined.
The other config option I added - noPlayerBackupTimer - introduces a new timer. That timer will be used if there's no player in a world. Setting it to 0 would just use the default timer timer. If you have timer set to 120, every 2 hours a backup will be created. If you set noPlayerBackupTimer to 180, it'll take 3 hours until the next backup will be created. Once a player joins between 120 and 180 minutes in this example, the backup triggers instantly.
By joining a world, the noPlayerBackupCount will be reset internally. So, even joining for 1s would result in starting over with a new "countdown".

closes #59

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ All localization files have been checked and are complete! ✅

Waiting for approval by @MelanX

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ All localization files have been checked and are complete! ✅

Waiting for approval by @MelanX

@MelanX MelanX merged commit c96ff95 into 1.21.1 Jan 12, 2026
2 checks passed
MelanX added a commit that referenced this pull request Jan 12, 2026
* Add option to create `N` backups when there are no players

closes #59

* Fix backup logic when no players are online
MelanX added a commit that referenced this pull request Jan 12, 2026
* Add option to create `N` backups when there are no players

closes #59

* Fix backup logic when no players are online
MelanX added a commit that referenced this pull request Jan 12, 2026
* Add option to create `N` backups when there are no players

closes #59

* Fix backup logic when no players are online
@MelanX MelanX deleted the feature/no-player-backups-21.1 branch January 14, 2026 17:46
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.

1 participant