High performance Spigot fork that aims to fix gameplay and mechanics inconsistencies https://papermc.io/
Find a file
Aikar 99dd3ad303 Cache DataFixerUpper Rewrite Rules on demand
Mojang precaches every single potential rewrite rule that could ever
exist on server startup. This includes rules from all the way back to versions from 6+ years ago.

This is the source of why the server hogs every CPU core at 100% every start.

For anyone who hard resets for updates or has force upgraded their entire world, this
results in completely wasted cpu cycles.

This massive CPU usage also delays server startup time.

We improve this by making "min version to precache" that defaults to a future version
so that no rewrite rules are precached.

someone who expects to be converting a lot chunks could theoretically set
-DPaper.minPrecachedDatafixVersion=<dataVersionConvertingFrom> as a startup
parameter and only build from that point on.

However this will likely never be needed as the server will still run
the same cache logic on demand when it's actually needed. The only
cost would be some delay on the FIRST chunk conversion, but paper already
runs chunk conversions on another thread so this will likely never be
a concern for TPS.

This patch will significantly reduce CPU use on startup, reduce memory usage,
and improve server startup time.
2020-09-12 17:56:00 -04:00
.github [CI-SKIP] Add issue template 2020-08-29 23:53:41 -05:00
licenses [CI-SKIP] Clarify project licensing 2018-03-06 20:41:03 -05:00
Paper-MojangAPI (FIRST 1.16.3): Update Paper to 1.16.3 2020-09-10 19:47:58 -04:00
scripts Cache DataFixerUpper Rewrite Rules on demand 2020-09-12 17:56:00 -04:00
Spigot-API-Patches (FIRST 1.16.3): Update Paper to 1.16.3 2020-09-10 19:47:58 -04:00
Spigot-Server-Patches Cache DataFixerUpper Rewrite Rules on demand 2020-09-12 17:56:00 -04:00
work Updated Upstream (CraftBukkit/Spigot) (#4318) 2020-09-12 21:57:21 +02:00
.editorconfig [CI-SKIP] add .editorconfig for base code style settings 2018-08-07 01:13:55 -04:00
.gitignore Fix ./paper edit continue for Windows 2020-05-20 04:10:29 +02:00
.gitmodules Cleanup and restructure the project 2016-04-01 22:55:54 -05:00
.travis.yml [CI-SKIP] switch back to trusty now we figured out the issue 2020-08-25 00:29:01 -04:00
CONTRIBUTING.md [CI-SKIP] Revitalise CONTRIBUTING.md 2020-07-14 18:22:51 +02:00
LICENSE.md Create HoverEvent from ItemStack Entity 2020-07-06 22:19:08 +02:00
paper 1.16.2 Release (#4123) 2020-08-24 22:22:08 -04:00
pom.xml Implement Brigadier Mojang API 2020-04-27 01:37:37 -04:00
README.md [CI-SKIP] Update README.md (for 1.16.2) (#4202) 2020-08-25 09:49:38 -04:00
SHIT_TO_CHECK.md 1.16.2 Release (#4123) 2020-08-24 22:22:08 -04:00

Paper Build Status

High performance Spigot fork 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)

  • See our API patches here
  • See upcoming, pending, and recently added API here
  • Paper API javadocs here: papermc.io/javadocs
  • Maven Repo (for paper-api):
<repository>
    <id>papermc</id>
    <url>https://papermc.io/repo/repository/maven-public/</url>
</repository>
  • Artifact Information:
<dependency>
    <groupId>com.destroystokyo.paper</groupId>
    <artifactId>paper-api</artifactId>
    <version>1.16.2-R0.1-SNAPSHOT</version>
    <scope>provided</scope>
</dependency>

Or alternatively, with Gradle:

  • Repository:
repositories {
    maven {
        url 'https://papermc.io/repo/repository/maven-public/'
    }
}
  • Artifact:
dependencies {
    compileOnly 'com.destroystokyo.paper:paper-api:1.16.2-R0.1-SNAPSHOT'
}

How To (Compiling Jar From Source)

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

Clone this repo, run ./paper jar from bash, get files.

How To (Pull Request)

See Contributing

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.