Skip to content

Commit f44d110

Browse files
feat: update for Paper 26.1 (#741)
Co-authored-by: Matouš Kučera <mk@kcra.me>
1 parent 9c1d1dd commit f44d110

43 files changed

Lines changed: 241 additions & 463 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,15 @@ These constants can be imported and used in MDX, like so:
132132
import {
133133
LATEST_MC_RELEASE,
134134
LATEST_PAPER_RELEASE,
135+
LATEST_PAPER_BUILD_API_VERSION,
135136
LATEST_VELOCITY_RELEASE,
136137
LATEST_FOLIA_RELEASE,
137138
LATEST_WATERFALL_RELEASE,
138139
LATEST_USERDEV_RELEASE,
139140
} from "/src/utils/versions";
140141
141142
Latest Paper version is {LATEST_PAPER_RELEASE}.
143+
Latest Paper API build version is {LATEST_PAPER_BUILD_API_VERSION}
142144
Latest Velocity version is {LATEST_VELOCITY_RELEASE}.
143145
Latest Minecraft version is {LATEST_MC_RELEASE}.
144146
Latest Folia version is {LATEST_FOLIA_RELEASE}.

astro.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
LATEST_ANSI_RELEASE,
1616
LATEST_FOLIA_RELEASE,
1717
LATEST_MC_RELEASE,
18+
LATEST_PAPER_BUILD_API_VERSION,
1819
LATEST_PAPER_RELEASE,
1920
LATEST_USERDEV_RELEASE,
2021
LATEST_VELOCITY_RELEASE,
@@ -562,6 +563,7 @@ export default defineConfig({
562563
constants: {
563564
LATEST_MC_RELEASE,
564565
LATEST_PAPER_RELEASE,
566+
LATEST_PAPER_BUILD_API_VERSION,
565567
LATEST_VELOCITY_RELEASE,
566568
LATEST_FOLIA_RELEASE,
567569
LATEST_WATERFALL_RELEASE,

src/content/docs/misc/java-install.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Installing or updating Java
3-
description: How to install or update to Java 21 on Linux (apt/rpm), Windows, or Mac.
3+
description: How to install or update to Java 25 on Linux (apt/rpm), Windows, or Mac.
44
slug: misc/java-install
55
---
66

@@ -31,7 +31,7 @@ previous hostile licensing.
3131

3232
### Ubuntu/Debian
3333

34-
Installing Java 21 on Debian-based Linux distributions is very simple. First, ensure your system has
34+
Installing Java 25 on Debian-based Linux distributions is very simple. First, ensure your system has
3535
all required tools to successfully install Java.
3636

3737
```bash
@@ -46,18 +46,18 @@ wget -O - https://apt.corretto.aws/corretto.key | sudo gpg --dearmor -o /usr/sha
4646
echo "deb [signed-by=/usr/share/keyrings/corretto-keyring.gpg] https://apt.corretto.aws stable main" | sudo tee /etc/apt/sources.list.d/corretto.list
4747
```
4848

49-
Then, install Java 21 and other dependencies using the following command:
49+
Then, install Java 25 and other dependencies using the following command:
5050

5151
```bash
5252
sudo apt-get update
53-
sudo apt-get install -y java-21-amazon-corretto-jdk libxi6 libxtst6 libxrender1
53+
sudo apt-get install -y java-25-amazon-corretto-jdk libxi6 libxtst6 libxrender1
5454
```
5555

5656
Proceed to [verify your installation](#verifying-installation).
5757

5858
### RPM-based
5959

60-
To install Java 21 on CentOS, RHEL, Fedora, openSUSE, SLES, or any other RPM-based Linux
60+
To install Java 25 on CentOS, RHEL, Fedora, openSUSE, SLES, or any other RPM-based Linux
6161
distribution, execute the following commands depending on your package manager. Once you have
6262
finished, precede to [verify your installation](#verifying-installation).
6363

@@ -68,7 +68,7 @@ DNF is used on Fedora, CentOS/RHEL 7+, and related distributions.
6868
```bash
6969
sudo rpm --import https://yum.corretto.aws/corretto.key
7070
sudo curl -Lo /etc/yum.repos.d/corretto.repo https://yum.corretto.aws/corretto.repo
71-
sudo dnf -y install java-21-amazon-corretto-devel
71+
sudo dnf -y install java-25-amazon-corretto-devel
7272
```
7373

7474
#### Zypper
@@ -78,7 +78,7 @@ Zypper is used on openSUSE, SLES, and related distributions.
7878
```bash
7979
sudo zypper addrepo https://yum.corretto.aws/corretto.repo
8080
sudo zypper refresh
81-
sudo zypper install java-21-amazon-corretto-devel
81+
sudo zypper install java-25-amazon-corretto-devel
8282
```
8383

8484
#### YUM
@@ -88,14 +88,14 @@ YUM is used on older releases of CentOS/RHEL, and excessively old releases of Fe
8888
```bash
8989
sudo rpm --import https://yum.corretto.aws/corretto.key
9090
sudo curl -Lo /etc/yum.repos.d/corretto.repo https://yum.corretto.aws/corretto.repo
91-
sudo yum -y install java-21-amazon-corretto-devel
91+
sudo yum -y install java-25-amazon-corretto-devel
9292
```
9393

9494
## Windows 10 & 11
9595

9696
If you're on Windows 10 or 11, installing Java is just like installing any other program. Download
9797
the Amazon Corretto installer from
98-
[their website](https://corretto.aws/downloads/latest/amazon-corretto-21-x64-windows-jdk.msi).
98+
[their website](https://corretto.aws/downloads/latest/amazon-corretto-25-x64-windows-jdk.msi).
9999

100100
Once you have run the installer, it is safe to click "next" through the whole process. No additional
101101
bloatware or toolbars will be installed, and all the required features are enabled out of the box.
@@ -109,7 +109,7 @@ If you're on macOS, the best way to manage Java installations is with a tool cal
109109
terminal run the following command:
110110

111111
```bash
112-
brew install openjdk@21
112+
brew install openjdk@25
113113
```
114114

115115
Once this command has completed, continue to [verify your installation](#verifying-installation).
@@ -129,36 +129,36 @@ prompt you to update like this:
129129
![Pterodactyl Automatic Prompt](./assets/pterodactyl-prompt.png)
130130

131131
If this does not show up for you, the Java version can be manually changed. Navigate to the
132-
"Startup" tab of your server, select `Java 21` from the "Docker Image"
132+
"Startup" tab of your server, select `Java 25` from the "Docker Image"
133133
dropdown as shown in the image below.
134134

135135
![Pterodactyl Manual Java Version Change](./assets/pterodactyl-manual.png)
136136

137137
:::note
138138

139-
If you don't see `Java 21` in the dropdown, an administrator account is required to update the Paper egg.
139+
If you don't see `Java 25` in the dropdown, an administrator account is required to update the Paper egg.
140140

141141
:::
142142

143143
The Verifying Installation section does not apply for Pterodactyl.
144144

145145
## Verifying installation
146146

147-
Now that you have installed Java 21, run this command in your terminal to ensure the process was
147+
Now that you have installed Java 25, run this command in your terminal to ensure the process was
148148
successful.
149149

150150
```bash
151151
java -version
152152
```
153153

154154
The output should be similar to this. The important parts to look out for is that it starts with
155-
`openjdk 21` and contains `64-Bit` in the last line. If the output you get is similar to
155+
`openjdk 25` and contains `64-Bit` in the last line. If the output you get is similar to
156156
`java: command not found`, try creating a new terminal session.
157157

158158
```
159-
openjdk version "21" 2023-09-19 LTS
160-
OpenJDK Runtime Environment Corretto-21.0.0.35.1 (build 21+35-LTS)
161-
OpenJDK 64-Bit Server VM Corretto-21.0.0.35.1 (build 21+35-LTS, mixed mode, sharing)
159+
openjdk version "25" 2025-09-16
160+
OpenJDK Runtime Environment (build 25+36-3489)
161+
OpenJDK 64-Bit Server VM (build 25+36-3489, mixed mode, sharing)
162162
```
163163

164164
If your installation has failed, do not hesitate to reach out in the `#paper-help` channel of our

src/content/docs/paper/admin/getting-started/getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ slug: paper/getting-started
88

99
:::tip
1010

11-
Paper requires at least **Java 21** to run, which [is easy to download and install](/misc/java-install).
11+
Paper requires at least **Java 25** to run, which [is easy to download and install](/misc/java-install).
1212

1313
:::
1414

src/content/docs/paper/admin/getting-started/migration.md

Lines changed: 54 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -16,33 +16,6 @@ See our [Backup Guide](/paper/updating#step-1-backup) for more information.
1616

1717
## Migrating to Paper
1818

19-
### From CraftBukkit or Spigot
20-
21-
It's easy to migrate from CraftBukkit or Spigot to Paper. Follow the steps below.
22-
23-
1. Stop your server if it is running, and create a full backup.
24-
2. Download Paper from [our downloads page](https://papermc.io/downloads).
25-
3. Rename the downloaded file to match the name specified in the [start command](/paper/getting-started#running-the-server).
26-
4. Replace your existing JAR file with your freshly downloaded Paper JAR.
27-
5. Start your new server.
28-
29-
Up until 1.20.5, Paper retained full compatibility with all Spigot plugins. However, plugins using Spigot API
30-
added **after** 1.20.5 version will not work. Such plugins may often provide Paper-compatible builds. If they
31-
do not do that, you will need to look for alternatives. However, nowadays most plugins are built and tested
32-
against Paper, so you typically will not encounter incompatible plugins.
33-
34-
:::note
35-
36-
Your new Paper server will still use [`bukkit.yml`](/paper/reference/bukkit-configuration)
37-
and [`spigot.yml`](/paper/reference/spigot-configuration).
38-
New configuration options can be found in [`config/paper-global.yml`](/paper/reference/global-configuration)
39-
and [`config/paper-world-defaults.yml`](/paper/reference/world-configuration).
40-
41-
:::
42-
43-
If you have any issues migrating from CraftBukkit or Spigot, do not hesitate to reach out for
44-
support on [our Discord server](https://discord.gg/papermc) (`#paper-help` channel).
45-
4619
### From Vanilla
4720

4821
When migrating to Paper from Vanilla, the way worlds are stored will automatically be changed.
@@ -52,7 +25,8 @@ closely, as manual changes will be required.
5225
1. Stop your Vanilla server if it is running, and create a full backup.
5326
2. Download Paper from [our downloads page](https://papermc.io/downloads) and replace your Vanilla
5427
server JAR with your freshly downloaded Paper JAR.
55-
3. Rename the downloaded file to match the name specified in the [start command](/paper/getting-started#running-the-server).
28+
3. Rename the downloaded file to match the name specified in
29+
the [start command](/paper/getting-started#running-the-server).
5630
4. Start your new Paper server.
5731

5832
You have now successfully migrated to Paper. If you encounter any issues, do not hesitate to reach
@@ -69,10 +43,59 @@ Additionally, note that Paper does not support Fabric or Forge mods. You will ne
6943
replacements. Any hybrids that attempt to support both mods and plugins are fundamentally flawed and
7044
not recommended for use.
7145

46+
### From Spigot/CraftBukkit
47+
48+
Spigot and CraftBukkit modify the Vanilla world directory structure, making a direct migration as of `26.1`
49+
fundamentally impossible. If you wish to migrate from Spigot/CraftBukkit anyway, you will
50+
first need to **migrate from Spigot/CraftBukkit to Vanilla**, after which you can safely follow
51+
the [Vanilla Migration Guide](#from-vanilla). For instructions on how to do this, please
52+
refer to the Spigot documentation.
53+
7254
## Migrating from Paper
7355

7456
### To Vanilla
7557

58+
Because Paper shares a similar world structure to Vanilla, all you need to do is move around some files.
59+
The following list shows which files you will need to move where. **Before you move around any files,
60+
make sure your server is fully stopped**.
61+
62+
:::note
63+
64+
These steps assume a `level-name` (as set in `server.properties`) of `world`. If this is not the
65+
case for you, replace `world` with your `level-name` for all steps below.
66+
67+
:::
68+
69+
The following files will need to be moved **from** `world/dimensions/minecraft/overworld/data/minecraft/`
70+
**into** `world/data/minecraft/`:
71+
72+
- `game_rules.dat`
73+
- `scheduled_events.dat`
74+
- `wandering_trader.dat`
75+
- `weather.dat`
76+
- `world_gen_settings.dat`
77+
78+
After you have moved these files, you can now replace the Paper server JAR with a Vanilla server JAR
79+
and start your Vanilla server!
80+
81+
### To Fabric/Forge
82+
83+
Because both Fabric and Forge use the same directory structure for world storage as Vanilla, follow
84+
the [Vanilla Migration Guide](#to-vanilla) for this process. Note that neither Fabric nor Forge will
85+
support Paper plugins! You will be required to find replacement mods.
86+
87+
## Other Migration
88+
89+
:::caution
90+
91+
The guides below display outdated information no longer relevant for modern Paper servers. They are
92+
kept for historical purposes and people still using older versions. Please note that you will
93+
**not receive support for using outdated versions.**
94+
95+
:::
96+
97+
### To Vanilla (pre 26.1)
98+
7699
Because Paper stores worlds slightly differently than Vanilla, manual work is required to migrate.
77100
If these steps are not taken, your nether and end will look like they have been reset. Don't worry!
78101
Even if this has happened, you haven't lost any data. The Vanilla server just doesn't know where to
@@ -81,7 +104,7 @@ find it.
81104
Here is a chart to show the difference between how Vanilla and Paper store worlds.
82105

83106
| Server Software | Overworld | Nether | End |
84-
| --------------- | --------- | --------------------- | --------------------- |
107+
|-----------------|-----------|-----------------------|-----------------------|
85108
| Vanilla | `/world` | `/world/DIM-1` | `/world/DIM1` |
86109
| Paper | `/world` | `/world_nether/DIM-1` | `/world_the_end/DIM1` |
87110

@@ -106,12 +129,6 @@ case for you, replace `world` with your `level-name` for all steps below.
106129

107130
### To CraftBukkit or Spigot
108131

109-
Paper does **not** support migration to either CraftBukkit or Spigot! While you may find success
110-
(both CraftBukkit and Spigot use the same directory structure as Paper), **do not** reach out for
132+
Paper does **not** support migration to either CraftBukkit or Spigot!
133+
While you may find success, **do not** reach out for
111134
support with issues you encounter and note that data loss is possible.
112-
113-
### To Fabric/Forge
114-
115-
Because both Fabric and Forge use the same directory structure for world storage as Vanilla, follow
116-
the [Vanilla Migration Guide](#to-vanilla) for this process. Note that neither Fabric nor Forge will
117-
support Paper plugins! You will be required to find replacement mods.

0 commit comments

Comments
 (0)