diff --git a/.gitignore b/.gitignore index 78ec8315fc..3827bdefa8 100644 --- a/.gitignore +++ b/.gitignore @@ -47,3 +47,4 @@ Bukkit CraftBukkit Paperclip Paperclip.jar +paperclip.jar diff --git a/Paperclip b/Paperclip index 1b58efd4de..98c39e89d1 160000 --- a/Paperclip +++ b/Paperclip @@ -1 +1 @@ -Subproject commit 1b58efd4de067e40562ba01fefe70cc22a32ffeb +Subproject commit 98c39e89d130e39c75cf4ebeea914f7ceb359a84 diff --git a/Spigot-API-Patches/Add-PlayerLocaleChangeEvent.patch b/Spigot-API-Patches/Add-PlayerLocaleChangeEvent.patch index 54fb48e981..058e85a685 100644 --- a/Spigot-API-Patches/Add-PlayerLocaleChangeEvent.patch +++ b/Spigot-API-Patches/Add-PlayerLocaleChangeEvent.patch @@ -1,5 +1,5 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Zach Brown <1254957+zachbr@users.noreply.github.com> +From: Isaac Moore Date: Mon, 29 Feb 2016 18:02:25 -0600 Subject: [PATCH] Add PlayerLocaleChangeEvent diff --git a/Spigot-API-Patches/POM-changes.patch b/Spigot-API-Patches/POM-changes.patch index 2f617d0f06..f4cc4ca5d3 100644 --- a/Spigot-API-Patches/POM-changes.patch +++ b/Spigot-API-Patches/POM-changes.patch @@ -24,7 +24,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 - spigot-api + com.destroystokyo.paper + paper-api - 1.9-SNAPSHOT + 1.9-R0.1-SNAPSHOT jar - Spigot-API diff --git a/Spigot-Server-Patches/Allow-for-toggling-of-spawn-chunks.patch b/Spigot-Server-Patches/Allow-for-toggling-of-spawn-chunks.patch index 927057b1b9..b7ea4d7830 100644 --- a/Spigot-Server-Patches/Allow-for-toggling-of-spawn-chunks.patch +++ b/Spigot-Server-Patches/Allow-for-toggling-of-spawn-chunks.patch @@ -1,6 +1,6 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Dmck2b -Date: Tue, 1 Mar 2016 13:59:50 -0600 +From: Zach Brown <1254957+zachbr@users.noreply.github.com> +Date: Thu, 3 Mar 2016 03:53:43 -0600 Subject: [PATCH] Allow for toggling of spawn chunks @@ -24,9 +24,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -0,0 +0,0 @@ public abstract class World implements IBlockAccess { - this.isClientSide = flag; - this.N = worldprovider.getWorldBorder(); - this.getServer().addWorld(this.world); // CraftBukkit + this.N.world = (WorldServer) this; + this.getServer().addWorld(this.world); + // CraftBukkit end + this.keepSpawnInMemory = this.paperConfig.keepSpawnInMemory; // Paper timings = new SpigotTimings.WorldTimingsHandler(this); // Spigot - code below can generate new world and access timings this.entityLimiter = new org.spigotmc.TickLimiter(spigotConfig.entityMaxTickTime); diff --git a/Spigot-Server-Patches/Made-EntityDismountEvent-Cancellable.patch b/Spigot-Server-Patches/Made-EntityDismountEvent-Cancellable.patch index 8e5584d571..f94d55db93 100644 --- a/Spigot-Server-Patches/Made-EntityDismountEvent-Cancellable.patch +++ b/Spigot-Server-Patches/Made-EntityDismountEvent-Cancellable.patch @@ -1,6 +1,6 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Nik Gil -Date: Thu, 3 Mar 2016 01:50:54 -0600 +Date: Thu, 3 Mar 2016 04:04:19 -0600 Subject: [PATCH] Made EntityDismountEvent Cancellable @@ -17,10 +17,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 public abstract class Entity implements ICommandListener { @@ -0,0 +0,0 @@ public abstract class Entity implements ICommandListener { - } } // CraftBukkit end -- Bukkit.getPluginManager().callEvent( new org.spigotmc.event.entity.EntityDismountEvent( this.getBukkitEntity(), entity.getBukkitEntity() ) ); // Spigot + Bukkit.getPluginManager().callEvent( new org.spigotmc.event.entity.EntityDismountEvent(entity.getBukkitEntity(), this.getBukkitEntity())); // Spigot + // Paper start - make EntityDismountEvent cancellable + EntityDismountEvent dismountEvent = new EntityDismountEvent(this.getBukkitEntity(), entity.getBukkitEntity()); // Spigot + Bukkit.getPluginManager().callEvent(dismountEvent); diff --git a/Spigot-Server-Patches/POM-Changes.patch b/Spigot-Server-Patches/POM-Changes.patch index 5d3cc37ef3..17cb114c1c 100644 --- a/Spigot-Server-Patches/POM-Changes.patch +++ b/Spigot-Server-Patches/POM-Changes.patch @@ -17,7 +17,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + com.destroystokyo.paper + paper jar - 1.9-SNAPSHOT + 1.9-R0.1-SNAPSHOT - Spigot - http://www.spigotmc.org + Paper diff --git a/Spigot-Server-Patches/Timings-v2.patch b/Spigot-Server-Patches/Timings-v2.patch index 600879b306..2aca3a8b16 100644 --- a/Spigot-Server-Patches/Timings-v2.patch +++ b/Spigot-Server-Patches/Timings-v2.patch @@ -1,6 +1,6 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Aikar -Date: Thu, 3 Mar 2016 01:03:42 -0600 +Date: Thu, 3 Mar 2016 04:00:11 -0600 Subject: [PATCH] Timings v2 @@ -417,9 +417,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 // CraftBukkit end MinecraftServer.LOGGER.info("Stopping server"); + SpigotTimings.stopServer(); // Paper - if (this.am() != null) { - this.am().b(); - } + // CraftBukkit start + if (this.server != null) { + this.server.disablePlugins(); @@ -0,0 +0,0 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs protected void B() {} @@ -555,8 +555,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 public static boolean haveWeSilencedAPhysicsCrash; public static String blockLocation; @@ -0,0 +0,0 @@ public abstract class World implements IBlockAccess { - this.N = worldprovider.getWorldBorder(); - this.getServer().addWorld(this.world); // CraftBukkit + this.getServer().addWorld(this.world); + // CraftBukkit end this.keepSpawnInMemory = this.paperConfig.keepSpawnInMemory; // Paper - timings = new SpigotTimings.WorldTimingsHandler(this); // Spigot - code below can generate new world and access timings + timings = new co.aikar.timings.WorldTimingsHandler(this); // Paper - code below can generate new world and access timings diff --git a/upstreamMerge.sh b/upstreamMerge.sh index 7da28daf0a..d5e2868727 100755 --- a/upstreamMerge.sh +++ b/upstreamMerge.sh @@ -12,4 +12,5 @@ function update { update Bukkit update CraftBukkit +update Paperclip