mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
Don't toString disconnect message in console.
This commit is contained in:
parent
b0e81a4ede
commit
b29f737cb3
1 changed files with 2 additions and 1 deletions
|
@ -534,6 +534,7 @@
|
||||||
public void a(PacketPlayInResourcePackStatus packetplayinresourcepackstatus) {}
|
public void a(PacketPlayInResourcePackStatus packetplayinresourcepackstatus) {}
|
||||||
|
|
||||||
public void a(IChatBaseComponent ichatbasecomponent) {
|
public void a(IChatBaseComponent ichatbasecomponent) {
|
||||||
|
- PlayerConnection.c.info(this.player.getName() + " lost connection: " + ichatbasecomponent);
|
||||||
+ // CraftBukkit start - Rarely it would send a disconnect line twice
|
+ // CraftBukkit start - Rarely it would send a disconnect line twice
|
||||||
+ if (this.processedDisconnect) {
|
+ if (this.processedDisconnect) {
|
||||||
+ return;
|
+ return;
|
||||||
|
@ -541,7 +542,7 @@
|
||||||
+ this.processedDisconnect = true;
|
+ this.processedDisconnect = true;
|
||||||
+ }
|
+ }
|
||||||
+ // CraftBukkit end
|
+ // 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.
|
+ // CraftBukkit start - Replace vanilla quit message handling with our own.
|
||||||
+ /*
|
+ /*
|
||||||
this.minecraftServer.aH();
|
this.minecraftServer.aH();
|
||||||
|
|
Loading…
Add table
Reference in a new issue