From 6aa7d59b7b7b9ed9dc42c0fde7f6aa5e2f898c67 Mon Sep 17 00:00:00 2001 From: killme Date: Sun, 12 Nov 2017 20:04:08 +0100 Subject: [PATCH] Prevent logins from being processed when the player has disconnected --- ...rom-being-processed-when-the-player-.patch | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Spigot-Server-Patches/0252-Prevent-logins-from-being-processed-when-the-player-.patch diff --git a/Spigot-Server-Patches/0252-Prevent-logins-from-being-processed-when-the-player-.patch b/Spigot-Server-Patches/0252-Prevent-logins-from-being-processed-when-the-player-.patch new file mode 100644 index 0000000000..32e4b41add --- /dev/null +++ b/Spigot-Server-Patches/0252-Prevent-logins-from-being-processed-when-the-player-.patch @@ -0,0 +1,27 @@ +From f2bbc719f2f539d22ba2bfc991578d5263d834ae Mon Sep 17 00:00:00 2001 +From: killme +Date: Sun, 12 Nov 2017 19:40:01 +0100 +Subject: [PATCH] Prevent logins from being processed when the player has + disconnected + + +diff --git a/src/main/java/net/minecraft/server/LoginListener.java b/src/main/java/net/minecraft/server/LoginListener.java +index 75df928..eaac25d 100644 +--- a/src/main/java/net/minecraft/server/LoginListener.java ++++ b/src/main/java/net/minecraft/server/LoginListener.java +@@ -60,7 +60,11 @@ public class LoginListener implements PacketLoginInListener, ITickable { + } + // Paper end + if (this.g == LoginListener.EnumProtocolState.READY_TO_ACCEPT) { +- this.b(); ++ // Paper start - prevent logins to be processed even though disconnect was called ++ if (networkManager.isConnected()) { ++ this.b(); ++ } ++ // Paper end + } else if (this.g == LoginListener.EnumProtocolState.DELAY_ACCEPT) { + EntityPlayer entityplayer = this.server.getPlayerList().a(this.i.getId()); + +-- +2.7.4 +