Skip to content

Commit

Permalink
feat: add pause-when-empty-seconds (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leguan16 authored Nov 26, 2024
1 parent f394ff5 commit 98e50d6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config-specs/paper/server-properties.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ online-mode:
op-permission-level:
default: "4"
description: "Sets the default permission level for ops when using /op. (Allowed values: 0, 1, 2, 3, 4)"
pause-when-empty-seconds:
default: "-1"
description: >
How many seconds have to pass after no player has been online before the server is paused.
This is disabled by default because it is incompatible with what plugins expect and might do with no players online.
player-idle-timeout:
default: "0"
description: >
Expand Down
2 changes: 2 additions & 0 deletions config-specs/paper/vanilla/server-properties.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pause-when-empty-seconds:
default: 60
3 changes: 3 additions & 0 deletions docs/paper/admin/how-to/get-to-vanilla.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import ConfigDocBlock from '@site/src/components/config/ConfigDocBlock';
import VanillaWorldDefaults from '!!raw-loader!@site/config-specs/paper/vanilla/paper-world-defaults.yml'
import VanillaGlobalDefaults from '!!raw-loader!@site/config-specs/paper/vanilla/paper-global.yml'
import SpigotChanges from '!!raw-loader!@site/config-specs/paper/vanilla/spigot.yml'
import ServerProperties from '!!raw-loader!@site/config-specs/paper/vanilla/server-properties.yml'

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

:::
## server.properties
<ConfigDocBlock data={ServerProperties}/>

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

0 comments on commit 98e50d6

Please sign in to comment.