Skip to content

Commit dc69b17

Browse files
authored
Merge branch 'main' into feature/oversized-item-component-sanitizer-dont-sanitize
2 parents e0840a2 + 9dfc0fb commit dc69b17

File tree

5 files changed

+50
-4
lines changed

5 files changed

+50
-4
lines changed

astro.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export default defineConfig({
156156
},
157157
{
158158
label: "Miscellaneous",
159-
items: ["paper/misc/paper-bug-fixes", "paper/faq"],
159+
items: ["paper/misc/update-checker", "paper/misc/paper-bug-fixes", "paper/faq"],
160160
},
161161
],
162162
},

src/config/paper/paper-global.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,11 +364,10 @@ packet-limiter:
364364
DROP which will ignore packets over the limit, and KICK which will kick
365365
players for exceeding the limit
366366
interval:
367-
vanilla: "0.000001"
367+
vanilla: "-1"
368368
default: "7.0"
369369
description: The interval, in seconds, for which max-packet-rate should apply
370370
max-packet-rate:
371-
vanilla: "999999.0"
372371
default: "500.0"
373372
description: The number of packets allowed per player within the interval
374373
player-auto-save:
@@ -427,7 +426,7 @@ scoreboards:
427426
will incur a performance degradation
428427
spam-limiter:
429428
incoming-packet-threshold:
430-
vanilla: "2147483647"
429+
vanilla: "disabled"
431430
default: "300"
432431
description: >-
433432
Sets the threshold at which the server will consider incoming packets spam
@@ -535,6 +534,11 @@ unsupported-settings:
535534
This setting controls if equipment should be updated when handling certain player
536535
actions. If set to false this will allow players to exploit attributes by e.g.
537536
switching equipment before using it.
537+
update-checker:
538+
enabled:
539+
default: "true"
540+
description: >-
541+
Whether Paper should check for updates automatically on startup. See [here](/paper/misc/update-checker/) for more information.
538542
watchdog:
539543
early-warning-delay:
540544
default: "10000"
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: Update checker
3+
description: Documentation for Paper's built-in automatic update checker.
4+
slug: paper/misc/update-checker
5+
---
6+
7+
Since 1.21.11, Paper includes a built-in update checker that notifies server administrators on startup when a new version of Paper is available.
8+
9+
## How it works
10+
11+
When the server starts, Paper will check its current version against the latest available version in the stable channel on the PaperMC servers.
12+
If a newer version is found, a notification message will be printed to the console and server logs.
13+
14+
Additionally, you can manually check for updates at any time by running the `version` command in the server console (or in-game with appropriate `minecraft.command.version` permissions).
15+
16+
## What is sent
17+
18+
The update checker sends the following information to the PaperMC servers:
19+
- Current Paper version
20+
- Your servers client IP (as for any http request)
21+
22+
This information is not currently stored or analyzed by PaperMC, though requests pass through CloudFlare.
23+
24+
## Configuration
25+
The update checker can be disabled in the `paper-global.yml` configuration file. The relevant section is as follows:
26+
27+
```yaml title="config/paper-global.yml"
28+
update-checker:
29+
enabled: false
30+
```
31+
32+
Alternatively you can disable the update checker by adding the following JVM argument when starting your server:
33+
34+
```bash
35+
-Dpaper.disableStartupVersionCheck
36+
```

src/content/docs/paper/admin/reference/system-properties.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ It also remaps plugin CB calls to remove the version information.
194194
- **default**: `false`
195195
- **description**: Allows you to bypass the Java version check. See [here](/paper/faq#unsupported-java-detected-what-do-i-do) for more info.
196196

197+
#### paper.disableStartupVersionCheck
198+
199+
- **default**: `unset`
200+
- **description**: If set, disables the automatic update checking on startup. See [here](/paper/misc/update-checker) for more info.
201+
197202
#### paper.useLegacyPluginLoading
198203

199204
- **default**: `false`

src/content/docs/paper/admin/reference/vanilla-command-permissions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ The following is a list of permissions for Bukkit commands.
106106
| help | /? | bukkit.command.help | Yes |
107107
| plugins | /pl | bukkit.command.plugins | Yes |
108108
| reload | /rl | bukkit.command.reload | No |
109+
| restart | | bukkit.command.restart | No |
109110
| timings | | bukkit.command.timings | No |
110111
| version | /ver, /about | bukkit.command.version | Yes |
111112

0 commit comments

Comments
 (0)