Skip to content

Commit 139c670

Browse files
authored
fix: update config references (#488)
* style: reorder configuration settings for consistency Reorders the configuration settings in the documentation to match the order in new installations, making it easier to locate the settings. * feat: add world-container Bukkit setting Added the `world-container` setting to the documentation, specifying the folder where world files are saved. This setting allows for easier management of world directories. * feat: replace spawn.keep-spawn-loaded with lootables.auto-replenish Removed `spawn.keep-spawn-loaded` from the documentation, as it is now a game rule, and replaced it with `lootables.auto-replenish`. Closes #457.
1 parent 6298b7b commit 139c670

2 files changed

Lines changed: 86 additions & 80 deletions

File tree

config-specs/paper/bukkit.yml

Lines changed: 75 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,31 @@
1-
aliases:
2-
default: now-in-commands.yml
3-
description: Static value from converting old versions to the new commands.yml format.
4-
chunk-gc:
5-
period-in-ticks:
6-
default: "600"
7-
description: >-
8-
How long chunks loaded by plugins should last for. Capped by Paper to be
9-
20 ticks (1 second).
101
settings:
112
allow-end:
123
default: "true"
134
description: Whether to load end-type dimensions.
5+
warn-on-overload:
6+
default: "true"
7+
description: Allows disabling the "Can't keep up!" message.
8+
permissions-file:
9+
default: permissions.yml
10+
description: >-
11+
File to load server permissions from. Use of this feature has mostly been
12+
replaced by permission plugins.
13+
update-folder:
14+
default: update
15+
description: >-
16+
Path to replace new plugin versions with.
17+
See [Updating Plugins](/paper/updating#step-2-update-plugins) for more information.
18+
plugin-profiling:
19+
default: "false"
20+
description: "This option does not operate, as it is disabled by a Paper patch."
1421
connection-throttle:
1522
default: "4000"
1623
description: >-
1724
How long of a delay to enforce between connections from an IP address.
1825
Measured in milliseconds since last attempt.
26+
query-plugins:
27+
default: "true"
28+
description: Whether to send plugins in the GS4 Query protocol response.
1929
deprecated-verbose:
2030
default: default
2131
description: >
@@ -25,118 +35,114 @@ settings:
2535
is true.
2636
2737
Valid values are "true", "false", or "default".
38+
shutdown-message:
39+
default: Server closed
40+
description: |
41+
The kick message for the player when the server shuts down.
42+
The message is formatted with legacy "§" style formatting.
2843
minimum-api:
2944
default: none
3045
description: >
3146
Minimum plugin [api-version](/paper/dev/plugin-yml#api-version). A string
3247
containing the server version, ignoring minor part, from 1.13 to 1.20. If
3348
below this, or not specified, the plugin is prevented from loading.
34-
permissions-file:
35-
default: permissions.yml
36-
description: >-
37-
File to load server permissions from. Use of this feature has mostly been
38-
replaced by permission plugins.
39-
plugin-profiling:
40-
default: "false"
41-
description: "This option does not operate, as it is disabled by a Paper patch."
42-
query-plugins:
43-
default: "true"
44-
description: Whether to send plugins in the GS4 Query protocol response.
45-
shutdown-message:
46-
default: Server closed
47-
description: |
48-
The kick message for the player when the server shuts down.
49-
The message is formatted with legacy "§" style formatting.
50-
update-folder:
51-
default: update
52-
description: >-
53-
Path to replace new plugin versions with.
54-
See [Updating Plugins](/paper/updating#step-2-update-plugins) for more information.
5549
use-map-color-cache:
5650
default: "true"
5751
description: >-
5852
Whether to build and save mappings from RGB colors to the closest map
5953
palette color.
60-
warn-on-overload:
61-
default: "true"
62-
description: Allows disabling the "Can't keep up!" message.
54+
world-container:
55+
default: "N/A"
56+
description: >-
57+
Specifies the path to the folder where world files are saved. By default, this is the folder where the server JAR file is located.
58+
Note: Worlds must be manually moved to this folder for the server to recognize them.
59+
6360
spawn-limits:
64-
ambient:
65-
default: "15"
61+
monsters:
62+
default: "70"
6663
description: >-
67-
Set the spawn-limits for ambient mobs. This can be overridden by the
68-
[Paper world config](/paper/reference/world-configuration#entities_spawning_spawn_limits_ambient).
64+
Set the spawn-limits for monsters. This can be overridden by the
65+
[Paper world config](/paper/reference/world-configuration#entities_spawning_spawn_limits_monster).
6966
animals:
7067
default: "10"
7168
description: >-
7269
Set the spawn-limits for animals. This can be overridden by the
7370
[Paper world config](/paper/reference/world-configuration#entities_spawning_spawn_limits_creature).
74-
axolotls:
71+
water-animals:
7572
default: "5"
7673
description: >-
77-
Set the spawn-limits for axolotls. This can be overridden by the
78-
[Paper world config](/paper/reference/world-configuration#entities_spawning_spawn_limits_axolotls).
79-
monsters:
80-
default: "70"
81-
description: >-
82-
Set the spawn-limits for monsters. This can be overridden by the
83-
[Paper world config](/paper/reference/world-configuration#entities_spawning_spawn_limits_monster).
74+
Set the spawn-limits for water animals. This can be overridden by the
75+
[Paper world config](/paper/reference/world-configuration#entities_spawning_spawn_limits_water_creature).
8476
water-ambient:
8577
default: "20"
8678
description: >-
8779
Set the spawn-limits for water ambient mobs. This can be overridden by the
8880
[Paper world config](/paper/reference/world-configuration#entities_spawning_spawn_limits_water_ambient).
89-
water-animals:
90-
default: "5"
91-
description: >-
92-
Set the spawn-limits for water animals. This can be overridden by the
93-
[Paper world config](/paper/reference/world-configuration#entities_spawning_spawn_limits_water_creature).
9481
water-underground-creature:
9582
default: "5"
9683
description: >-
9784
Set the spawn-limits for water underground creatures. This can be
9885
overridden by the [Paper world config](/paper/reference/world-configuration#entities_spawning_spawn_limits_underground_water_creature).
99-
ticks-per:
100-
ambient-spawns:
101-
default: "1"
86+
axolotls:
87+
default: "5"
10288
description: >-
103-
Number of ticks between each ambient mob spawn attempt. Set to -1 to use
104-
default.
89+
Set the spawn-limits for axolotls. This can be overridden by the
90+
[Paper world config](/paper/reference/world-configuration#entities_spawning_spawn_limits_axolotls).
91+
ambient:
92+
default: "15"
93+
description: >-
94+
Set the spawn-limits for ambient mobs. This can be overridden by the
95+
[Paper world config](/paper/reference/world-configuration#entities_spawning_spawn_limits_ambient).
96+
chunk-gc:
97+
period-in-ticks:
98+
default: "600"
99+
description: >-
100+
How long chunks loaded by plugins should last for. Capped by Paper to be
101+
20 ticks (1 second).
102+
ticks-per:
105103
animal-spawns:
106104
default: "400"
107105
description: >-
108106
Number of ticks between each animal spawn attempt. Set to -1 to use
109107
default.
110-
autosave:
111-
default: "6000"
112-
description: >-
113-
Number of ticks between each full auto-save. Set to -1 to disable
114-
auto-save.
115-
axolotl-spawns:
108+
monster-spawns:
116109
default: "1"
117110
description: >-
118-
Number of ticks between each axolotl spawn attempt. Set to -1 to use
111+
Number of ticks between each monster spawn attempt. Set to -1 to use
119112
default.
120-
monster-spawns:
113+
water-spawns:
121114
default: "1"
122115
description: >-
123-
Number of ticks between each monster spawn attempt. Set to -1 to use
116+
Number of ticks between each water-animal spawn attempt. Set to -1 to use
124117
default.
125118
water-ambient-spawns:
126119
default: "1"
127120
description: >-
128121
Number of ticks between each water-ambient mob spawn attempt. Set to -1 to
129122
use default.
130-
water-spawns:
131-
default: "1"
132-
description: >-
133-
Number of ticks between each water-animal spawn attempt. Set to -1 to use
134-
default.
135123
water-underground-creature-spawns:
136124
default: "1"
137125
description: >-
138126
Number of ticks between each water-underground-creature spawn attempt. Set
139127
to -1 to use default.
128+
axolotl-spawns:
129+
default: "1"
130+
description: >-
131+
Number of ticks between each axolotl spawn attempt. Set to -1 to use
132+
default.
133+
ambient-spawns:
134+
default: "1"
135+
description: >-
136+
Number of ticks between each ambient mob spawn attempt. Set to -1 to use
137+
default.
138+
autosave:
139+
default: "6000"
140+
description: >-
141+
Number of ticks between each full auto-save. Set to -1 to disable
142+
auto-save.
143+
aliases:
144+
default: now-in-commands.yml
145+
description: Static value from converting old versions to the new commands.yml format.
140146
worlds:
141147
<world>:
142148
biome-provider:

docs/paper/admin/reference/configuration/README.mdx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ you have not manually overridden it.
3535
### Per-world values
3636

3737
To set a value for a specific world, edit `paper-world.yml` within the world folder. For example, if
38-
you wanted to disable `spawn.keep-spawn-loaded` for a world named `resource`, you would edit
38+
you wanted to enable `lootables.auto-replenish` for a world named `resource`, you would edit
3939
`paper-world.yml` within the `resource` folder like so:
4040

4141
```yaml title=resource/paper-world.yml
4242
_version: 28
4343

4444
# highlight-start
45-
spawn:
46-
keep-spawn-loaded: false
45+
lootables:
46+
auto-replenish: true
4747
# highlight-end
4848
```
4949

@@ -59,10 +59,12 @@ individual `paper-world.yml`. You **do not need to and should not** copy the ent
5959
`paper-world-default.yml` file into each `paper-world.yml` file you want to modify. Only copy the
6060
exact value you want to change.
6161

62-
For a more complex real-world example: setting both different `spawn-limits` and `keep-spawn-loaded`
62+
For a more complex real-world example: setting both different `spawn-limits` and `auto-replenish`
6363
in two worlds.
6464

6565
```yaml title="paper-world-defaults.yml"
66+
lootables:
67+
auto-replenish: true
6668
entities:
6769
spawning:
6870
spawn-limits:
@@ -73,8 +75,6 @@ entities:
7375
underground_water_creature: 5
7476
water_ambient: 5
7577
water_creature: 20
76-
spawn:
77-
keep-spawn-loaded: true
7878
```
7979
8080
```yaml title="world_nether/paper-world.yml"
@@ -85,31 +85,31 @@ entities:
8585
```
8686
8787
```yaml title="resource_world/paper-world.yml"
88+
lootables:
89+
auto-replenish: false
8890
entities:
8991
spawning:
9092
spawn-limits:
9193
axolotls: 8
9294
creature: 15
9395
monster: 2
94-
spawn:
95-
keep-spawn-loaded: false
9696
```
9797
9898
This example demonstrates the concept of inheritance. For each world, this is the effective
9999
configuration which will be applied:
100100
101101
| Configuration Key | world | world_nether | world_the_end | resource_world |
102102
|-------------------------------------------------------------|--------|--------------|---------------|----------------|
103+
| `lootables.auto-replenish` | `true` | `true` | `true` | `false` |
103104
| `entities.spawning.spawn-limits.ambient` | `15` | `15` | `15` | `15` |
104105
| `entities.spawning.spawn-limits.axolotls` | `5` | `5` | `5` | `8` |
105106
| `entities.spawning.spawn-limits.creature` | `10` | `10` | `10` | `15` |
106107
| `entities.spawning.spawn-limits.monster` | `70` | `90` | `70` | `2` |
107108
| `entities.spawning.spawn-limits.underground_water_creature` | `5` | `5` | `5` | `5` |
108109
| `entities.spawning.spawn-limits.water_ambient` | `20` | `20` | `20` | `20` |
109110
| `entities.spawning.spawn-limits.water_creature` | `5` | `5` | `5` | `5` |
110-
| `spawn.keep-spawn-loaded` | `true` | `true` | `true` | `false` |
111111

112112
Notice that `world_the_end/paper-world.yml` was never modified. Because of this, it inherits all the
113-
configuration options from `config/paper-world-defaults.yml`. Additionally, `keep-spawn-loaded` was
113+
configuration options from `config/paper-world-defaults.yml`. Additionally, `auto-replenish` was
114114
only disabled in `resource_world/paper-world.yml` because in `config/paper-world-defaults.yml`,
115-
`keep-spawn-loaded` is set to `true`.
115+
`auto-replenish` is set to `true`.

0 commit comments

Comments
 (0)