Skip to content

Commit bc670b8

Browse files
committed
Follow BungeeCord's removal of handling of plugin message on initial handler
1 parent ecc3b67 commit bc670b8

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed
Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,8 @@
1-
From c5abf8cb64be5db6b8631aa7bc81779c2bc889ab Mon Sep 17 00:00:00 2001
1+
From a61f21617b217a2a3776d5603ec7e742a9b95bad Mon Sep 17 00:00:00 2001
22
From: Shane Freeder <theboyetronic@gmail.com>
33
Date: Fri, 21 Apr 2023 15:32:33 +0100
44
Subject: [PATCH] reduce log spam from clients registeirng too many channels
55

6-
7-
diff --git a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
8-
index e18d288a..9ed724b7 100644
9-
--- a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
10-
+++ b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
11-
@@ -199,6 +199,22 @@ public class InitialHandler extends PacketHandler implements PendingConnection
12-
}
13-
}
14-
15-
+ @Override
16-
+ public void handle(PluginMessage pluginMessage) throws Exception
17-
+ {
18-
+ // Waterfall start
19-
+ try {
20-
+ this.relayMessage(pluginMessage);
21-
+ } catch (IllegalStateException | IllegalArgumentException ex) {
22-
+ if (net.md_5.bungee.protocol.MinecraftDecoder.DEBUG) {
23-
+ throw ex;
24-
+ } else {
25-
+ throw new QuietException(ex.getMessage());
26-
+ }
27-
+ }
28-
+ // Waterfall end
29-
+ }
30-
+
31-
@Override
32-
public void handle(LegacyHandshake legacyHandshake) throws Exception
33-
{
346
--
357
2.43.0
368

0 commit comments

Comments
 (0)