diff options
author | md_5 <git@md-5.net> | 2015-05-26 18:40:15 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2015-05-26 18:40:15 +1000 |
commit | b29f737cb3f14f858ae65e8b90839d70d9912022 (patch) | |
tree | 7a15bcecb65c36f165f94874d79396edb912207b /nms-patches | |
parent | b0e81a4ede6b8a9d3d51aa8a78518f6e4ded6c93 (diff) | |
download | craftbukkit-b29f737cb3f14f858ae65e8b90839d70d9912022.tar craftbukkit-b29f737cb3f14f858ae65e8b90839d70d9912022.tar.gz craftbukkit-b29f737cb3f14f858ae65e8b90839d70d9912022.tar.lz craftbukkit-b29f737cb3f14f858ae65e8b90839d70d9912022.tar.xz craftbukkit-b29f737cb3f14f858ae65e8b90839d70d9912022.zip |
Don't toString disconnect message in console.
Diffstat (limited to 'nms-patches')
-rw-r--r-- | nms-patches/PlayerConnection.patch | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nms-patches/PlayerConnection.patch b/nms-patches/PlayerConnection.patch index 766b26c6..1b92fa7c 100644 --- a/nms-patches/PlayerConnection.patch +++ b/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(); |