Skip to content

Commit 2bb9ddc

Browse files
committed
Updated Upstream (BungeeCord)
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing BungeeCord Changes: f8de3054 Expand CustomClickEvent to have raw and parsed data f1f5be18 Add further documentation to dialog API e0556097 Bump Netty to 4.2.1.Final 8bff00f1 #3830: Dialog & 25w21a changes 4d37c248 Document packages net.md_5.bungee.api.dialog.action and net.md_5.bungee.api.dialog.body. 75456b2c Document package net.md_5.bungee.api.dialog 53365e4b Fix java 8 javadoc 69e4872f Minecraft 25w20a protocol support a336efb8 #3825, #3826: Check memory address availability before using natives ae2fc30b #3828: Set allocator using Netty system property to apply pooled allocator default globally 2bafb705 Minecraft 25w19a protocol support 617c2728 Minecraft 25w18a protocol support
1 parent 43e346e commit 2bb9ddc

28 files changed

Lines changed: 253 additions & 152 deletions

BungeeCord

Submodule BungeeCord updated 75 files

BungeeCord-Patches/0001-POM-Changes.patch

Lines changed: 113 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From ceb03602d7da765f9580ea9be7f06a1bb556c2c9 Mon Sep 17 00:00:00 2001
1+
From 6a5dd5c5dd1afa5e53727f5abe81f1558fdc970a Mon Sep 17 00:00:00 2001
22
From: Tux <write@imaginarycode.com>
33
Date: Thu, 19 May 2016 19:33:31 +0200
44
Subject: [PATCH] POM Changes
@@ -7,10 +7,10 @@ Subject: [PATCH] POM Changes
77
- Deploy to papermc mvn repo
88

99
diff --git a/api/pom.xml b/api/pom.xml
10-
index b050e847..26ad9ac8 100644
10+
index fdf519e1..82616946 100644
1111
--- a/api/pom.xml
1212
+++ b/api/pom.xml
13-
@@ -4,42 +4,42 @@
13+
@@ -4,48 +4,48 @@
1414
<modelVersion>4.0.0</modelVersion>
1515

1616
<parent>
@@ -52,6 +52,14 @@ index b050e847..26ad9ac8 100644
5252
</dependency>
5353
<dependency>
5454
- <groupId>net.md-5</groupId>
55+
- <artifactId>bungeecord-dialog</artifactId>
56+
+ <groupId>io.github.waterfallmc</groupId>
57+
+ <artifactId>waterfall-dialog</artifactId>
58+
<version>${project.version}</version>
59+
<scope>compile</scope>
60+
</dependency>
61+
<dependency>
62+
- <groupId>net.md-5</groupId>
5563
- <artifactId>bungeecord-event</artifactId>
5664
+ <groupId>io.github.waterfallmc</groupId>
5765
+ <artifactId>waterfall-event</artifactId>
@@ -204,6 +212,55 @@ index b24fb9d3..7041e584 100644
204212

205213
<dependencies>
206214
<dependency>
215+
diff --git a/dialog/README.md b/dialog/README.md
216+
index 0bf858d5..4bd8f958 100644
217+
--- a/dialog/README.md
218+
+++ b/dialog/README.md
219+
@@ -1,4 +1,4 @@
220+
-BungeeCord-Dialog
221+
+Waterfall-Dialog
222+
=================
223+
224+
Highly experimental API, subject to breakage. All contributions welcome, including major refactors/design changes.
225+
diff --git a/dialog/pom.xml b/dialog/pom.xml
226+
index 0a3d929c..2166b6dd 100644
227+
--- a/dialog/pom.xml
228+
+++ b/dialog/pom.xml
229+
@@ -4,18 +4,18 @@
230+
<modelVersion>4.0.0</modelVersion>
231+
232+
<parent>
233+
- <groupId>net.md-5</groupId>
234+
- <artifactId>bungeecord-parent</artifactId>
235+
+ <groupId>io.github.waterfallmc</groupId>
236+
+ <artifactId>waterfall-parent</artifactId>
237+
<version>1.21-R0.3-SNAPSHOT</version>
238+
<relativePath>../pom.xml</relativePath>
239+
</parent>
240+
241+
- <groupId>net.md-5</groupId>
242+
- <artifactId>bungeecord-dialog</artifactId>
243+
+ <groupId>io.github.waterfallmc</groupId>
244+
+ <artifactId>waterfall-dialog</artifactId>
245+
<version>1.21-R0.3-SNAPSHOT</version>
246+
<packaging>jar</packaging>
247+
248+
- <name>BungeeCord-Dialog</name>
249+
+ <name>Waterfall-Dialog</name>
250+
<description>Minecraft dialog API intended for use with BungeeCord</description>
251+
<licenses>
252+
<license>
253+
@@ -27,8 +27,8 @@
254+
255+
<dependencies>
256+
<dependency>
257+
- <groupId>net.md-5</groupId>
258+
- <artifactId>bungeecord-chat</artifactId>
259+
+ <groupId>io.github.waterfallmc</groupId>
260+
+ <artifactId>waterfall-chat</artifactId>
261+
<version>${project.version}</version>
262+
<scope>compile</scope>
263+
</dependency>
207264
diff --git a/event/pom.xml b/event/pom.xml
208265
index 61ee9b45..eab7e89d 100644
209266
--- a/event/pom.xml
@@ -514,7 +571,7 @@ index f87a1bea..cee9d672 100644
514571
<dependencies>
515572
<dependency>
516573
diff --git a/pom.xml b/pom.xml
517-
index 0af145e1..e1da472e 100644
574+
index cb567025..b18bf53b 100644
518575
--- a/pom.xml
519576
+++ b/pom.xml
520577
@@ -3,18 +3,18 @@
@@ -565,7 +622,7 @@ index 0af145e1..e1da472e 100644
565622
</developer>
566623
</developers>
567624

568-
@@ -46,28 +58,24 @@
625+
@@ -48,28 +60,24 @@
569626
</modules>
570627

571628
<scm>
@@ -604,7 +661,7 @@ index 0af145e1..e1da472e 100644
604661
</distributionManagement>
605662

606663
<properties>
607-
@@ -149,12 +157,21 @@
664+
@@ -151,12 +159,21 @@
608665
</execution>
609666
</executions>
610667
</plugin>
@@ -626,15 +683,15 @@ index 0af145e1..e1da472e 100644
626683
<groupId>org.apache.maven.plugins</groupId>
627684
<artifactId>maven-checkstyle-plugin</artifactId>
628685
<version>3.6.0</version>
629-
@@ -179,6 +196,7 @@
686+
@@ -181,6 +198,7 @@
630687
</dependency>
631688
</dependencies>
632689
</plugin>
633690
+ -->
634691
<plugin>
635692
<groupId>org.codehaus.mojo</groupId>
636693
<artifactId>animal-sniffer-maven-plugin</artifactId>
637-
@@ -300,6 +318,15 @@
694+
@@ -302,6 +320,15 @@
638695
</goals>
639696
</execution>
640697
</executions>
@@ -650,7 +707,7 @@ index 0af145e1..e1da472e 100644
650707
</plugin>
651708
<plugin>
652709
<groupId>org.projectlombok</groupId>
653-
@@ -348,6 +375,7 @@
710+
@@ -350,6 +377,7 @@
654711
<!-- lombok does not add @return or @param which causes warnings, so ignore -->
655712
<doclint>none</doclint>
656713
<sourcepath>${project.build.directory}/delombok</sourcepath>
@@ -659,7 +716,7 @@ index 0af145e1..e1da472e 100644
659716
</execution>
660717
</executions>
661718
diff --git a/protocol/pom.xml b/protocol/pom.xml
662-
index 10278395..85e66f0c 100644
719+
index 77e11507..5c032ca0 100644
663720
--- a/protocol/pom.xml
664721
+++ b/protocol/pom.xml
665722
@@ -4,19 +4,19 @@
@@ -693,9 +750,9 @@ index 10278395..85e66f0c 100644
693750
</dependency>
694751
<dependency>
695752
- <groupId>net.md-5</groupId>
696-
- <artifactId>bungeecord-chat</artifactId>
753+
- <artifactId>bungeecord-serializer</artifactId>
697754
+ <groupId>io.github.waterfallmc</groupId>
698-
+ <artifactId>waterfall-chat</artifactId>
755+
+ <artifactId>waterfall-serializer</artifactId>
699756
<version>${project.version}</version>
700757
<scope>compile</scope>
701758
</dependency>
@@ -819,6 +876,50 @@ index f86003fb..dd4b2460 100644
819876
<version>${project.version}</version>
820877
<scope>compile</scope>
821878
</dependency>
879+
diff --git a/serializer/pom.xml b/serializer/pom.xml
880+
index 670eb6bc..37b401ce 100644
881+
--- a/serializer/pom.xml
882+
+++ b/serializer/pom.xml
883+
@@ -4,18 +4,18 @@
884+
<modelVersion>4.0.0</modelVersion>
885+
886+
<parent>
887+
- <groupId>net.md-5</groupId>
888+
- <artifactId>bungeecord-parent</artifactId>
889+
+ <groupId>io.github.waterfallmc</groupId>
890+
+ <artifactId>waterfall-parent</artifactId>
891+
<version>1.21-R0.3-SNAPSHOT</version>
892+
<relativePath>../pom.xml</relativePath>
893+
</parent>
894+
895+
- <groupId>net.md-5</groupId>
896+
- <artifactId>bungeecord-serializer</artifactId>
897+
+ <groupId>io.github.waterfallmc</groupId>
898+
+ <artifactId>waterfall-serializer</artifactId>
899+
<version>1.21-R0.3-SNAPSHOT</version>
900+
<packaging>jar</packaging>
901+
902+
- <name>BungeeCord-Serializer</name>
903+
+ <name>Waterfall-Serializer</name>
904+
<description>Minecraft JSON serializer intended for use with BungeeCord</description>
905+
906+
<dependencies>
907+
@@ -27,13 +27,13 @@
908+
</dependency>
909+
<dependency>
910+
<groupId>${project.groupId}</groupId>
911+
- <artifactId>bungeecord-chat</artifactId>
912+
+ <artifactId>waterfall-chat</artifactId>
913+
<version>${project.version}</version>
914+
<scope>compile</scope>
915+
</dependency>
916+
<dependency>
917+
<groupId>${project.groupId}</groupId>
918+
- <artifactId>bungeecord-dialog</artifactId>
919+
+ <artifactId>waterfall-dialog</artifactId>
920+
<version>${project.version}</version>
921+
<scope>compile</scope>
922+
</dependency>
822923
diff --git a/slf4j/pom.xml b/slf4j/pom.xml
823924
index 68ba54d4..c6112807 100644
824925
--- a/slf4j/pom.xml

BungeeCord-Patches/0003-Rename-references-from-BungeeCord-to-Waterfall.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 8f814574c1555cad66d18481113949259ff7cf9f Mon Sep 17 00:00:00 2001
1+
From 798f8d69d4ca839a7f4431f1cb524faea0142f01 Mon Sep 17 00:00:00 2001
22
From: Tux <write@imaginarycode.com>
33
Date: Thu, 19 May 2016 11:28:45 -0700
44
Subject: [PATCH] Rename references from BungeeCord to Waterfall
@@ -18,10 +18,10 @@ index f1ccd4f6..d703d6d2 100644
1818
}
1919

2020
diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
21-
index 849662a7..8f03f72f 100644
21+
index fb92e1d4..0b9e43de 100644
2222
--- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
2323
+++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
24-
@@ -182,7 +182,7 @@ public class BungeeCord extends ProxyServer
24+
@@ -184,7 +184,7 @@ public class BungeeCord extends ProxyServer
2525
public BungeeCord() throws IOException
2626
{
2727
// Java uses ! to indicate a resource inside of a jar/zip/other container. Running Bungee from within a directory that has a ! will cause this to muck up.
@@ -30,7 +30,7 @@ index 849662a7..8f03f72f 100644
3030

3131
reloadMessages();
3232

33-
@@ -531,7 +531,7 @@ public class BungeeCord extends ProxyServer
33+
@@ -559,7 +559,7 @@ public class BungeeCord extends ProxyServer
3434
@Override
3535
public String getName()
3636
{

BungeeCord-Patches/0004-Add-Waterfall-configuration-files.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 30a378c7bfb8a741f14309a4777219d89152d1f9 Mon Sep 17 00:00:00 2001
1+
From c9003d9c296fbcff74e26990c3bcce78bd002cf8 Mon Sep 17 00:00:00 2001
22
From: Techcable <Techcable@techcable.net>
33
Date: Tue, 25 Oct 2016 11:58:37 -0400
44
Subject: [PATCH] Add Waterfall configuration files
@@ -42,7 +42,7 @@ index 00000000..741ebfde
4242
+
4343
+}
4444
diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
45-
index 8f03f72f..6a337941 100644
45+
index 0b9e43de..82fd3787 100644
4646
--- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
4747
+++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
4848
@@ -7,6 +7,7 @@ import com.google.common.collect.Lists;
@@ -51,9 +51,9 @@ index 8f03f72f..6a337941 100644
5151
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
5252
+import io.github.waterfallmc.waterfall.conf.WaterfallConfiguration;
5353
import io.netty.bootstrap.ServerBootstrap;
54-
import io.netty.channel.Channel;
55-
import io.netty.channel.ChannelException;
56-
@@ -101,7 +102,7 @@ public class BungeeCord extends ProxyServer
54+
import io.netty.buffer.ByteBuf;
55+
import io.netty.buffer.Unpooled;
56+
@@ -103,7 +104,7 @@ public class BungeeCord extends ProxyServer
5757
* Configuration.
5858
*/
5959
@Getter

BungeeCord-Patches/0005-Disable-Metrics.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
From a28b575469ed47df19de1e4e794360475aa70c5e Mon Sep 17 00:00:00 2001
1+
From 853d385c72121b831e45cc032a46b448e552b958 Mon Sep 17 00:00:00 2001
22
From: Jamie Mansfield <dev@jamierocks.uk>
33
Date: Thu, 19 May 2016 10:55:20 -0700
44
Subject: [PATCH] Disable Metrics
55

66
MCStats has not been stable for a long while now, and in our opinion it is not worth migrating to an alternative service. Waterfall has been maintained for the past two years without any or much consideration to statistics, we have users and that's enough for us ;)
77

88
diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
9-
index 6a337941..62febfd1 100644
9+
index 82fd3787..d7d15286 100644
1010
--- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
1111
+++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
12-
@@ -112,7 +112,7 @@ public class BungeeCord extends ProxyServer
12+
@@ -114,7 +114,7 @@ public class BungeeCord extends ProxyServer
1313
* locations.yml save thread.
1414
*/
1515
private final Timer saveThread = new Timer( "Reconnect Saver" );
@@ -18,7 +18,7 @@ index 6a337941..62febfd1 100644
1818
/**
1919
* Server socket listener.
2020
*/
21-
@@ -305,7 +305,7 @@ public class BungeeCord extends ProxyServer
21+
@@ -333,7 +333,7 @@ public class BungeeCord extends ProxyServer
2222
}
2323
}
2424
}, 0, TimeUnit.MINUTES.toMillis( 5 ) );
@@ -27,7 +27,7 @@ index 6a337941..62febfd1 100644
2727

2828
Runtime.getRuntime().addShutdownHook( new Thread()
2929
{
30-
@@ -463,7 +463,7 @@ public class BungeeCord extends ProxyServer
30+
@@ -491,7 +491,7 @@ public class BungeeCord extends ProxyServer
3131
reconnectHandler.close();
3232
}
3333
saveThread.cancel();

BungeeCord-Patches/0007-Fixup-ProtocolConstants.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
From bb8791c235c971029b373ac44225e3afc500f5d2 Mon Sep 17 00:00:00 2001
1+
From e2550c82fb7951f64edd051b425db676f0475328 Mon Sep 17 00:00:00 2001
22
From: Troy Frew <fuzzy_bot@arenaga.me>
33
Date: Tue, 15 Nov 2016 09:07:51 -0500
44
Subject: [PATCH] Fixup ProtocolConstants
55

66

77
diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java b/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java
8-
index 976ee797..05e75c02 100644
8+
index b1b532c9..8d65ca52 100644
99
--- a/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java
1010
+++ b/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java
11-
@@ -127,6 +127,16 @@ public class ProtocolConstants
11+
@@ -128,6 +128,16 @@ public class ProtocolConstants
1212
SUPPORTED_VERSION_IDS = supportedVersionIds.build();
1313
}
1414

@@ -26,5 +26,5 @@ index 976ee797..05e75c02 100644
2626
{
2727

2828
--
29-
2.49.0
29+
2.43.0
3030

BungeeCord-Patches/0009-Don-t-access-a-ByteBuf-s-underlying-array.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 2e82da30be2b841a49b88611772048d9b3bdb351 Mon Sep 17 00:00:00 2001
1+
From 59f1956731a8d406c3bcf6a3761bd155c55051b0 Mon Sep 17 00:00:00 2001
22
From: Techcable <Techcable@techcable.net>
33
Date: Tue, 3 May 2016 20:31:52 -0700
44
Subject: [PATCH] Don't access a ByteBuf's underlying array
@@ -71,10 +71,10 @@ index 71470345..32cd0219 100644
7171
// changes in the packet are ignored so we need to send it manually
7272
con.unsafe().sendPacket( pluginMessage );
7373
diff --git a/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java b/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java
74-
index 21664e76..4b41d61f 100644
74+
index 0a916c04..cfbab43a 100644
7575
--- a/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java
7676
+++ b/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java
77-
@@ -57,7 +57,7 @@ import net.md_5.bungee.util.PacketLimiter;
77+
@@ -56,7 +56,7 @@ import net.md_5.bungee.util.PacketLimiter;
7878
public class PipelineUtils
7979
{
8080

BungeeCord-Patches/0011-Add-support-for-FML-with-IP-Forwarding-enabled.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From b26d92d12ecd1b8bf2692e93d4e665d2c6256647 Mon Sep 17 00:00:00 2001
1+
From 8377d5482d49e0e6c7bd3b1cad3f7de809c0a5ff Mon Sep 17 00:00:00 2001
22
From: Daniel Naylor <git@drnaylor.co.uk>
33
Date: Tue, 25 Oct 2016 12:23:07 -0400
44
Subject: [PATCH] Add support for FML with IP Forwarding enabled
@@ -67,10 +67,10 @@ index 3cd625b9..c0487684 100644
6767
}
6868

6969
diff --git a/proxy/src/main/java/net/md_5/bungee/UserConnection.java b/proxy/src/main/java/net/md_5/bungee/UserConnection.java
70-
index 84ca1eae..6287c3fc 100644
70+
index d5df3c27..cb5a1ec9 100644
7171
--- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java
7272
+++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java
73-
@@ -185,9 +185,12 @@ public final class UserConnection implements ProxiedPlayer
73+
@@ -189,9 +189,12 @@ public final class UserConnection implements ProxiedPlayer
7474

7575
forgeClientHandler = new ForgeClientHandler( this );
7676

0 commit comments

Comments
 (0)