648f6078d7
This patch changes sign command logic so that `run_command` click events are routed through the standard chat/command logic used for inbound chat messages. This fixes numerous issues related to sign click commands: - Signs with a `run_command` value of "/<plugin command>" would fail and show the "Unknown command" warning. This prevents usage of commands like `//wand` from WorldEdit in sign click events entirely and requires users to drop the leading slash from other plugins' commands. This patch now executes the plugin commands as would be expected, adding a leading slash if necessary. - Signs with a `run_command` value that doesn't match an existing command could fail silently. This patch causes these to *always* show "Unknown command" instead. - Plugins listening to `PlayerCommandPreprocessEvent` would not be able to intercept any command executions from sign click events. This patch allows plugins to intercept player commands when fired by a click event, in the same manner as commands executed by the player typing or clicking on a chat message. - Commands executed from signs would not be logged to the console. This patch fixes this. This patch also prepends a leading slash if the `run_command` value lacks one, which matches vanilla behaviour (old code would strip this slash away) while also ensuring `PlayerCommandPreprocessEvent#getMessage` remains consistent with other command executions from chat (which always include the leading slash). |
||
---|---|---|
.github | ||
build-data | ||
gradle/wrapper | ||
licenses | ||
Paper-MojangAPI | ||
patches | ||
scripts | ||
work | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.gitmodules | ||
build.gradle.kts | ||
CONTRIBUTING.md | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
LICENSE.md | ||
README.md | ||
settings.gradle.kts |
Paper
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
- Documentation on using Paper: paper.readthedocs.io
- For a sneak peak on upcoming features, see here
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>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.17-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 'io.papermc.paper:paper-api:1.17-R0.1-SNAPSHOT'
}
How To (Compiling Jar From Source)
To compile Paper, you need JDK 16 and an internet connection.
Clone this repo, run ./gradlew applyPatches
, then ./gradlew reobfJar
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
Special Thanks To:
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.