From 69bbc3a71e80545741df22384ace861716253575 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 23 Sep 2017 15:05:50 +1000 Subject: [PATCH] Invalidate ping when spoof sent --- .../src/main/java/net/md_5/bungee/connection/UpstreamBridge.java | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java b/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java index ae3d900b..ad7202d7 100644 --- a/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java +++ b/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java @@ -129,6 +129,7 @@ public class UpstreamBridge extends PacketHandler con.getServer().unsafe().sendPacket( alive ); con.getServer().setPingFailed( true ); + con.getServer().setSentPingId( -1 ); } throw CancelSendSignal.INSTANCE;