Skip to content

Commit

Permalink
config.toml: Add World.SaveData to default config.toml.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandertv committed Oct 20, 2022
1 parent 3f9eea7 commit 1f855fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
# The folder that the world files (will) reside in, relative to the working directory. If not currently
# present, the folder will be made.
Folder = "world"
# Whether or not the worlds' data will be saved and loaded. If true, the server will use the
# default LevelDB data provider and if false, an empty provider will be used. To use your
# own provider, turn this value to false, as you will still be able to pass your own provider.
SaveData = true

[Players]
# The maximum amount of players accepted into the server. If set to 0, there is no player limit. The max
Expand All @@ -32,9 +36,9 @@
# The maximum chunk radius that players may set in their settings. If they try to set it above this number,
# it will be capped and set to the max.
MaximumChunkRadius = 32
# whether or not a player's data will be saved and loaded. If true, the server will use the
# Whether or not a player's data will be saved and loaded. If true, the server will use the
# default LevelDB data provider and if false, an empty provider will be used. To use your
# own provider, turn this value to false as you will still be able to pass your own provider.
# own provider, turn this value to false, as you will still be able to pass your own provider.
SaveData = true
# Folder controls where the player data will be stored by the default LevelDB
# player provider if it is enabled.
Expand Down
4 changes: 2 additions & 2 deletions server/conf.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ type UserConfig struct {
// SaveData controls whether a world's data will be saved and loaded.
// If true, the server will use the default LevelDB data provider and if
// false, an empty provider will be used. To use your own provider, turn
// this value to false as you will still be able to pass your own
// this value to false, as you will still be able to pass your own
// provider.
SaveData bool
// Folder is the folder that the data of the world resides in.
Expand All @@ -208,7 +208,7 @@ type UserConfig struct {
// SaveData controls whether a player's data will be saved and loaded.
// If true, the server will use the default LevelDB data provider and if
// false, an empty provider will be used. To use your own provider, turn
// this value to false as you will still be able to pass your own
// this value to false, as you will still be able to pass your own
// provider.
SaveData bool
// Folder controls where the player data will be stored by the default
Expand Down

0 comments on commit 1f855fe

Please sign in to comment.