From d15cfa4c49b42db6c063105a04a5a33c11368589 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 26 May 2015 18:40:15 +1000 Subject: [PATCH] Don't toString disconnect message in console. By: md_5 --- paper-server/nms-patches/PlayerConnection.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paper-server/nms-patches/PlayerConnection.patch b/paper-server/nms-patches/PlayerConnection.patch index 766b26c60e..1b92fa7cfe 100644 --- a/paper-server/nms-patches/PlayerConnection.patch +++ b/paper-server/nms-patches/PlayerConnection.patch @@ -534,6 +534,7 @@ public void a(PacketPlayInResourcePackStatus packetplayinresourcepackstatus) {} public void a(IChatBaseComponent ichatbasecomponent) { +- PlayerConnection.c.info(this.player.getName() + " lost connection: " + ichatbasecomponent); + // CraftBukkit start - Rarely it would send a disconnect line twice + if (this.processedDisconnect) { + return; @@ -541,7 +542,7 @@ + this.processedDisconnect = true; + } + // CraftBukkit end - PlayerConnection.c.info(this.player.getName() + " lost connection: " + ichatbasecomponent); ++ PlayerConnection.c.info(this.player.getName() + " lost connection: " + ichatbasecomponent.c()); // CraftBukkit: Don't toString(). // PAIL: Rename + // CraftBukkit start - Replace vanilla quit message handling with our own. + /* this.minecraftServer.aH();