High performance Spigot fork that aims to fix gameplay and mechanics inconsistencies https://papermc.io/
Find a file
Bjarne Koll f65939c6bd Remove wall-time / unused skip tick protection (#11412)
Spigot still maintains some partial implementation of "tick skipping", a
practice in which the MinecraftServer.currentTick field is updated not
by an increment of one per actual tick, but instead set to
System.currentTimeMillis() / 50. This behaviour means that the tracked
tick may "skip" a tick value in case a previous tick took more than the
expected 50ms.

To compensate for this in important paths, spigot/craftbukkit
implements "wall-time". Instead of incrementing/decrementing ticks on
block entities/entities by one for each call to their tick() method,
they instead increment/decrement important values, like
an ItemEntity's age or pickupDelay, by the difference of
`currentTick - lastTick`, where `lastTick` is the value of
`currentTick` during the last tick() call.

These "fixes" however do not play nicely with minecraft's simulation
distance as entities/block entities implementing the above behaviour
would "catch up" their values when moving from a non-ticking chunk to a
ticking one as their `lastTick` value remains stuck on the last tick in
a ticking chunk and hence lead to a large "catch up" once ticked again.

Paper completely removes the "tick skipping" behaviour (See patch
"Further-improve-server-tick-loop"), making the above precautions
completely unnecessary, which also rids paper of the previous described
incompatibility with non-ticking chunks.
2024-09-19 16:36:07 +02:00
.github [ci skip] chore: fix incorrect commit hash in PR builds (#11198) 2024-08-06 10:37:26 -07:00
build-data Update ChunkMap#distanceManager mapping patch 2024-06-16 14:50:57 -07:00
gradle/wrapper Update Gradle Wrapper to v8.8 2024-06-14 17:53:11 -07:00
licenses [ci skip] add missing final newline (#8659) 2022-12-13 05:16:45 -08:00
paper-api-generator Fix tag key generator output inconsistencies (#11218) 2024-08-11 00:11:57 +02:00
patches Remove wall-time / unused skip tick protection (#11412) 2024-09-19 16:36:07 +02:00
scripts Remove patch renaming scripts 2024-04-25 10:53:29 -07:00
test-plugin Add argument for FinePosition to brig API (#11094) 2024-07-28 11:23:18 -07:00
work Updated Upstream (Bukkit/CraftBukkit/Spigot) (#11405) 2024-09-15 21:39:53 +02:00
.editorconfig Registry Modification API (#10893) 2024-06-16 12:39:59 -07:00
.gitattributes [ci skip] update editorconfig and gitattributes (#9608) 2023-08-21 19:16:03 -07:00
.gitignore update generator 2024-04-27 22:30:15 +02:00
.gitmodules Update adventure 2023-12-06 21:04:46 -07:00
build.gradle.kts Update to 1.21.1 2024-08-10 12:24:38 +02:00
CONTRIBUTING.md [ci skip] Specify rebase location in CONTRIBUTING (#11255) 2024-08-16 15:41:58 -04:00
gradle.properties Update to 1.21.1 2024-08-10 12:24:38 +02:00
gradlew Update Gradle Wrapper to v8.8 2024-06-14 17:53:11 -07:00
gradlew.bat build: Update paperweight to 1.5.12 and Gradle Wrapper to 8.7 (#10361) 2024-03-29 10:43:36 -07:00
LICENSE.md Allow skipping of world symlink validation (#11250) 2024-08-16 16:36:30 -04:00
README.md Update to 1.21.1 2024-08-10 12:24:38 +02:00
SECURITY.md [ci skip] Create SECURITY.md (#11331) 2024-08-27 18:12:32 +02:00
settings.gradle.kts Brigadier Command Support (#8235) 2024-05-11 16:30:30 -04: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.1-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.1-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 project root's build/libs directory.

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

How To (Pull Request)

See Contributing

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