No description
Find a file
Spottedleaf e4eb69b8a1 Do not allow ticket level decreases to be processed asynchronously
Note: This cannot happen on the Fabric/NeoForge versions since
async ticket level processing is not allowed, but can happen on
Paper. This change is made here so that Paper can
remain in sync.

Ticket level decreases may be handled asynchronously when the
off-thread invokes processTicketUpdates() when the main thread
is running ChunkHolderManager#tick(). This is because the ticket
update is queued during tick(), but not executed (invoking
processTicketUpdates) until after releasing the ticket lock.
This creates a small window for an off-thread to invoke
processTicketUpdates() and steal the update.

When the update is stolen, the full chunk status update (if any)
will be eventually queued to execute via the chunk task queue.
If the chunk queue is processed during the server tick at any
point other than the ChunkHolderManager tick, then any ticket
level decrease will violate an important invariant in the
Moonrise chunk system: ticket level decreases only occur during
ChunkHolderManager tick. This invariant exists to make interfacing
with the chunk system easier, especially working with off-thread
contexts.

This change is specifically made to work towards fixing
https://github.com/PaperMC/Folia/issues/363
2025-06-20 21:10:09 -07:00
.github 1.21.6 dev 2025-06-17 15:45:25 +02:00
build-data Enable spigot obfuscation support (#12695) 2025-06-20 22:11:33 +01:00
gradle/wrapper 1.21.6 dev 2025-06-17 15:45:25 +02:00
licenses [ci skip] add missing final newline (#8659) 2022-12-13 05:16:45 -08:00
paper-api Re-add Log4j Javadocs (#12693) 2025-06-18 18:31:59 -07:00
paper-generator 1.21.6 dev 2025-06-17 15:45:25 +02:00
paper-server Do not allow ticket level decreases to be processed asynchronously 2025-06-20 21:10:09 -07:00
scripts Start updating contributing docs 2024-12-12 10:58:58 +01:00
test-plugin 1.21.6 dev 2025-06-17 15:45:25 +02:00
.editorconfig 1.21.5 2025-04-12 17:27:00 +02:00
.gitattributes [ci skip] update editorconfig and gitattributes (#9608) 2023-08-21 19:16:03 -07:00
.gitignore 1.21.5 2025-04-12 17:27:00 +02:00
build.gradle.kts Update paperweight and Gradle wrapper (#12573) 2025-05-19 17:34:49 -07:00
CONTRIBUTING.md [ci skip] Mention API Checks for CONTRIBUTING.md (#12315) 2025-03-21 17:50:58 +01:00
gradle.properties Update base to 1.21.6 2025-06-17 17:17:44 +02:00
gradlew Update paperweight and Gradle wrapper (#12573) 2025-05-19 17:34:49 -07:00
gradlew.bat Update paperweight and Gradle wrapper (#12573) 2025-05-19 17:34:49 -07:00
LICENSE.md Start updating contributing docs 2024-12-12 10:58:58 +01:00
README.md 1.21.6 dev 2025-06-17 15:45:25 +02:00
SECURITY.md [ci skip] Create SECURITY.md (#11331) 2024-08-27 18:12:32 +02:00
settings.gradle.kts 1.21.6 dev 2025-06-17 15:45:25 +02:00

Paper Paper Build Status Discord GitHub Sponsors Open Collective

The most widely used, high-performance Minecraft server that aims to fix gameplay and mechanics inconsistencies.

Support and Project Discussion:

How To (Server Admins)

Paperclip is a jar file that you can download and run just like a normal jar file.

Download Paper from our downloads page.

Run the Paperclip jar directly from your server. Just like old times

How To (Plugin Developers)

Repository (for paper-api)

Maven
<repository>
    <id>papermc</id>
    <url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
<dependency>
    <groupId>io.papermc.paper</groupId>
    <artifactId>paper-api</artifactId>
    <version>1.21.6-R0.1-SNAPSHOT</version>
    <scope>provided</scope>
</dependency>
Gradle
repositories {
    maven {
        url = uri("https://repo.papermc.io/repository/maven-public/")
    }
}

dependencies {
    compileOnly("io.papermc.paper:paper-api:1.21.6-R0.1-SNAPSHOT")
}

java {
    toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}

How To (Compiling Jar From Source)

To compile Paper, you need JDK 21 and an internet connection.

Clone this repo, run ./gradlew applyPatches, then ./gradlew createMojmapBundlerJar from your terminal. You can find the compiled jar in the paper-server/build/libs directory.

To get a full list of tasks, run ./gradlew tasks.

How To (Pull Request)

See Contributing

Old Versions (1.21.3 and below)

For branches of versions 1.8-1.21.3, please see our archive repository.

Support Us

First of all, thank you for considering helping out, we really appreciate that!

PaperMC has various recurring expenses, mostly related to infrastructure. Paper uses Open Collective via the Open Source Collective fiscal host to manage expenses. Open Collective allows us to be extremely transparent, so you can always see how your donations are used. You can read more about financially supporting PaperMC on our website.

You can find our collective here, or you can donate via GitHub Sponsors here, which will also go towards the collective.

Special Thanks To:

YourKit-Logo

YourKit, makers of the outstanding java profiler, support open source projects of all kinds with their full featured Java and .NET application profilers. We thank them for granting Paper an OSS license so that we can make our software the best it can be.

JetBrains, creators of the IntelliJ IDEA, supports Paper with one of their Open Source Licenses. IntelliJ IDEA is the recommended IDE for working with Paper, and most of the Paper team uses it.

All our sponsors!
Sponsor Image