2020-04-27 07:37:37 +02:00
|
|
|
From 72e2e4af618fca06282903aa0100a779f2945168 Mon Sep 17 00:00:00 2001
|
2016-03-01 00:09:49 +01:00
|
|
|
From: Zach Brown <zach.brown@destroystokyo.com>
|
2017-08-03 16:36:06 +02:00
|
|
|
Date: Tue, 1 Mar 2016 00:16:08 +0100
|
2014-07-21 22:46:54 +02:00
|
|
|
Subject: [PATCH] POM changes
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/pom.xml b/pom.xml
|
2020-04-27 07:37:37 +02:00
|
|
|
index 8964b9e3..ce09baea 100644
|
2014-07-21 22:46:54 +02:00
|
|
|
--- a/pom.xml
|
|
|
|
+++ b/pom.xml
|
2019-07-20 06:01:24 +02:00
|
|
|
@@ -2,34 +2,28 @@
|
2019-05-14 04:20:58 +02:00
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2017-08-06 00:36:47 +02:00
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
2015-01-11 08:10:11 +01:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2017-08-06 00:36:47 +02:00
|
|
|
+ <parent>
|
2016-03-01 00:09:49 +01:00
|
|
|
+ <groupId>com.destroystokyo.paper</groupId>
|
|
|
|
+ <artifactId>paper-parent</artifactId>
|
2016-04-24 04:41:46 +02:00
|
|
|
+ <version>dev-SNAPSHOT</version>
|
2017-08-06 00:36:47 +02:00
|
|
|
+ </parent>
|
2019-05-14 04:20:58 +02:00
|
|
|
|
|
|
|
- <groupId>org.spigotmc</groupId>
|
|
|
|
- <artifactId>spigot-api</artifactId>
|
2019-04-23 06:47:07 +02:00
|
|
|
+ <groupId>com.destroystokyo.paper</groupId>
|
2016-03-01 00:09:49 +01:00
|
|
|
+ <artifactId>paper-api</artifactId>
|
2020-01-22 03:02:07 +01:00
|
|
|
<version>1.15.2-R0.1-SNAPSHOT</version>
|
2015-01-07 05:13:40 +01:00
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
2014-07-21 22:46:54 +02:00
|
|
|
- <name>Spigot-API</name>
|
2017-08-06 00:36:47 +02:00
|
|
|
- <url>https://www.spigotmc.org/</url>
|
2016-03-01 00:09:49 +01:00
|
|
|
+ <name>Paper-API</name>
|
2016-09-04 08:26:05 +02:00
|
|
|
+ <url>https://github.com/PaperMC/Paper</url>
|
2015-01-07 05:13:40 +01:00
|
|
|
<description>An enhanced plugin API for Minecraft servers.</description>
|
2014-07-21 22:46:54 +02:00
|
|
|
|
|
|
|
<properties>
|
2019-01-04 20:19:36 +01:00
|
|
|
- <skipTests>true</skipTests>
|
|
|
|
+ <!-- <skipTests>true</skipTests> Paper - This [was] not going to end well -->
|
2019-05-06 04:58:04 +02:00
|
|
|
<maven.compiler.source>1.8</maven.compiler.source>
|
|
|
|
<maven.compiler.target>1.8</maven.compiler.target>
|
2018-07-15 03:53:17 +02:00
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
</properties>
|
2016-01-29 09:51:53 +01:00
|
|
|
|
2018-09-22 18:58:09 +02:00
|
|
|
- <distributionManagement>
|
|
|
|
- <repository>
|
2016-02-21 11:12:03 +01:00
|
|
|
- <id>spigotmc-releases</id>
|
|
|
|
- <url>https://hub.spigotmc.org/nexus/content/repositories/releases/</url>
|
2018-09-22 18:58:09 +02:00
|
|
|
- </repository>
|
|
|
|
- <snapshotRepository>
|
2016-02-21 11:12:03 +01:00
|
|
|
- <id>spigotmc-snapshots</id>
|
|
|
|
- <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
2018-09-22 18:58:09 +02:00
|
|
|
- </snapshotRepository>
|
|
|
|
- </distributionManagement>
|
|
|
|
-
|
|
|
|
<repositories>
|
2019-01-30 14:26:12 +01:00
|
|
|
<!--
|
|
|
|
If you are a plugin developer, please use https://hub.spigotmc.org/nexus/content/repositories/snapshots/
|
2019-07-20 06:01:24 +02:00
|
|
|
@@ -41,6 +35,10 @@
|
2017-08-03 16:36:06 +02:00
|
|
|
<id>spigotmc-public</id>
|
2018-07-14 03:44:35 +02:00
|
|
|
<url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
|
|
|
|
</repository>
|
2017-08-03 16:36:06 +02:00
|
|
|
+ <repository>
|
2016-06-23 07:32:41 +02:00
|
|
|
+ <id>sonatype</id>
|
|
|
|
+ <url>https://oss.sonatype.org/content/groups/public/</url>
|
|
|
|
+ </repository>
|
2018-07-14 03:44:35 +02:00
|
|
|
</repositories>
|
|
|
|
|
|
|
|
<pluginRepositories>
|
2019-07-20 06:01:24 +02:00
|
|
|
@@ -57,6 +55,20 @@
|
2019-04-23 06:47:07 +02:00
|
|
|
<version>2.6</version>
|
2016-09-16 21:38:52 +02:00
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
2016-11-03 20:28:58 +01:00
|
|
|
+ <!-- bundled with Minecraft, shouldn't ever change -->
|
2016-09-16 21:38:52 +02:00
|
|
|
+ <dependency>
|
2016-11-03 20:25:50 +01:00
|
|
|
+ <groupId>com.google.code.findbugs</groupId>
|
|
|
|
+ <artifactId>jsr305</artifactId>
|
2016-11-03 20:51:00 +01:00
|
|
|
+ <version>1.3.9</version>
|
2016-09-16 21:38:52 +02:00
|
|
|
+ <scope>compile</scope>
|
2019-04-23 06:47:07 +02:00
|
|
|
+ </dependency>
|
|
|
|
+ <!-- used in previous versions of the API -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.googlecode.json-simple</groupId>
|
|
|
|
+ <artifactId>json-simple</artifactId>
|
|
|
|
+ <version>1.1.1</version>
|
|
|
|
+ <scope>compile</scope>
|
2016-09-16 21:38:52 +02:00
|
|
|
+ </dependency>
|
|
|
|
<!-- bundled with Minecraft, should be kept in sync -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.guava</groupId>
|
2019-07-20 06:01:24 +02:00
|
|
|
@@ -113,15 +125,12 @@
|
2016-03-18 07:13:51 +01:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
+ <defaultGoal>clean install</defaultGoal>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
2017-09-23 20:17:20 +02:00
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
2019-12-11 00:56:33 +01:00
|
|
|
<version>3.8.1</version>
|
2017-09-23 20:17:20 +02:00
|
|
|
- <configuration>
|
|
|
|
- <!-- we use the Eclipse compiler as it doesn't need a JDK -->
|
|
|
|
- <compilerId>eclipse</compilerId>
|
|
|
|
- </configuration>
|
|
|
|
<dependencies>
|
|
|
|
<!-- we need our custom version as it fixes some bugs on case sensitive file systems -->
|
|
|
|
<dependency>
|
2019-07-20 06:01:24 +02:00
|
|
|
@@ -156,6 +165,7 @@
|
2016-11-19 03:09:03 +01:00
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
|
|
|
+ <dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>
|
|
|
|
<!-- when downloading via Maven we can pull depends individually -->
|
|
|
|
<shadedArtifactAttached>true</shadedArtifactAttached>
|
|
|
|
</configuration>
|
2020-04-27 07:37:37 +02:00
|
|
|
diff --git a/src/main/java/org/bukkit/event/player/PlayerEvent.java b/src/main/java/org/bukkit/event/player/PlayerEvent.java
|
|
|
|
index 793b661b..b7c8f2c3 100644
|
|
|
|
--- a/src/main/java/org/bukkit/event/player/PlayerEvent.java
|
|
|
|
+++ b/src/main/java/org/bukkit/event/player/PlayerEvent.java
|
|
|
|
@@ -14,7 +14,7 @@ public abstract class PlayerEvent extends Event {
|
|
|
|
player = who;
|
|
|
|
}
|
|
|
|
|
|
|
|
- PlayerEvent(@NotNull final Player who, boolean async) {
|
|
|
|
+ public PlayerEvent(@NotNull final Player who, boolean async) { // Paper - wtf?
|
|
|
|
super(async);
|
|
|
|
player = who;
|
|
|
|
|
2014-07-21 22:46:54 +02:00
|
|
|
--
|
2020-04-27 07:37:37 +02:00
|
|
|
2.26.2
|
2014-07-21 22:46:54 +02:00
|
|
|
|