Skip to content

Commit 98e50d6

Browse files
authored
feat: add pause-when-empty-seconds (#501)
1 parent f394ff5 commit 98e50d6

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

config-specs/paper/server-properties.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@ online-mode:
144144
op-permission-level:
145145
default: "4"
146146
description: "Sets the default permission level for ops when using /op. (Allowed values: 0, 1, 2, 3, 4)"
147+
pause-when-empty-seconds:
148+
default: "-1"
149+
description: >
150+
How many seconds have to pass after no player has been online before the server is paused.
151+
This is disabled by default because it is incompatible with what plugins expect and might do with no players online.
147152
player-idle-timeout:
148153
default: "0"
149154
description: >
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pause-when-empty-seconds:
2+
default: 60

docs/paper/admin/how-to/get-to-vanilla.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import ConfigDocBlock from '@site/src/components/config/ConfigDocBlock';
1010
import VanillaWorldDefaults from '!!raw-loader!@site/config-specs/paper/vanilla/paper-world-defaults.yml'
1111
import VanillaGlobalDefaults from '!!raw-loader!@site/config-specs/paper/vanilla/paper-global.yml'
1212
import SpigotChanges from '!!raw-loader!@site/config-specs/paper/vanilla/spigot.yml'
13+
import ServerProperties from '!!raw-loader!@site/config-specs/paper/vanilla/server-properties.yml'
1314

1415
Due to the way the Bukkit API is implemented in Paper, the gameplay experience between Vanilla and Paper can have inconsistencies.
1516
This can be furthered by efforts to fix bugs present in Vanilla Minecraft.
@@ -29,6 +30,8 @@ This guide will only help you to get as close to Vanilla as possible.
2930
Unfortunately, it currently is not possible to get a 100% Vanilla experience in Paper.
3031

3132
:::
33+
## server.properties
34+
<ConfigDocBlock data={ServerProperties}/>
3235

3336
## paper-world-defaults.yml
3437
<ConfigDocBlock data={VanillaWorldDefaults}/>

0 commit comments

Comments
 (0)