-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add configs for backups and chunk loader
- Loading branch information
Showing
4 changed files
with
83 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
[Limitations] | ||
# How many chunks should players be able to load per world? Use -1 for infinite. | ||
# Allowed range: -1 ~ 1000 - Default: -1 | ||
maxLoadedChunksPerPlayer = -1 | ||
|
||
# After how many minutes of offline time should players' chunk loaders be disabled? Use -1 to disable the inactivity timeout. | ||
# Allowed range: -1 ~ 525600 - Default: 10080 | ||
inactivityTimeout = 10080 | ||
|
||
# Chunk loaders from before version 1.2.0 are not bound to a player. Should these chunk loaders' loaded chunks stay loaded? | ||
# Allowed values: true, false - Default: true | ||
allowLegacyLoadedChunks = true | ||
|
||
# Can players use the chunk loader map? If false, players will see the message 'The chunk loader map is disabled on this server'. | ||
# Allowed values: true, false - Default: true | ||
canPlayersUseMap = true | ||
|
||
[General] | ||
# In what radius should the Single Chunk Loader be able to load chunks? | ||
# Allowed range: 1 ~ 6 - Default: 1 | ||
singleChunkLoaderRadius = 1 | ||
|
||
# In what radius should the Basic Chunk Loader be able to load chunks? | ||
# Allowed range: 1 ~ 6 - Default: 2 | ||
basicChunkLoaderRadius = 2 | ||
|
||
# In what radius should the Advanced Chunk Loader be able to load chunks? | ||
# Allowed range: 1 ~ 6 - Default: 3 | ||
advancedChunkLoaderRadius = 4 | ||
|
||
# In what radius should the Ultimate Chunk Loader be able to load chunks? | ||
# Allowed range: 1 ~ 6 - Default: 4 | ||
ultimateChunkLoaderRadius = 6 | ||
|
||
# Should chunk loaders do random ticks in loaded chunks? | ||
# Allowed values: true, false - Default: true | ||
doRandomTicks = true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#If set false, no backups are being made. | ||
enabled = true | ||
#Defines the backup type. | ||
#- FULL_BACKUPS - always creates full backups | ||
#- MODIFIED_SINCE_LAST - only saves the files which changed since last (partial) backup | ||
#- MODIFIED_SINCE_FULL - saves all files which changed after the last full backup | ||
#Allowed Values: FULL_BACKUPS, MODIFIED_SINCE_LAST, MODIFIED_SINCE_FULL | ||
backupType = "MODIFIED_SINCE_LAST" | ||
#How often should a full backup be created if only modified files should be saved? This creates a full backup when x minutes are over and the next backup needs to be done. Once a year is default. | ||
#Range: 1 ~ 10080 | ||
fullBackupTimer = 525960 | ||
#The max amount of backup files to keep. | ||
#Range: 1 ~ 32767 | ||
backupsToKeep = 10 | ||
#The time between two backups in minutes | ||
#5 = each 5 minutes | ||
#60 = each hour | ||
#1440 = each day | ||
#Range: 1 ~ 32767 | ||
timer = 120 | ||
#The compression level, 0 is no compression (less cpu usage) and takes a lot of space, 9 is best compression (most cpu usage) and takes less space. -1 is default | ||
#Range: -1 ~ 9 | ||
compressionLevel = -1 | ||
#Should message be sent when backup is in the making? | ||
sendMessages = true | ||
#The max size of storage the backup folder. If it takes more storage, old files will be deleted. | ||
#Needs to be written as <number><space><storage type> | ||
#Valid storage types: B, KB, MB, GB, TB | ||
maxDiskSize = "25 GB" | ||
#Used to define the output path. | ||
outputPath = "backups" | ||
|
||
[mod_compat] | ||
#Should backup notifications be sent to Discord by using mc2discord? (needs to be installed) | ||
mc2discord = true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters