summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/NetServerHandler.java
diff options
context:
space:
mode:
authorRaphfrk <raphfrk@gmail.com>2011-04-02 15:42:11 +0100
committerErik Broes <erikbroes@grum.nl>2011-04-02 18:22:19 +0200
commit121bcd5adc5b653ccc59be6ecac2b72ed29397ee (patch)
tree00512aff6dc615f2b916019d10c340930b9d3182 /src/main/java/net/minecraft/server/NetServerHandler.java
parentc84d51f4588c00329f9e3e1b537590b917ce3a49 (diff)
downloadcraftbukkit-121bcd5adc5b653ccc59be6ecac2b72ed29397ee.tar
craftbukkit-121bcd5adc5b653ccc59be6ecac2b72ed29397ee.tar.gz
craftbukkit-121bcd5adc5b653ccc59be6ecac2b72ed29397ee.tar.lz
craftbukkit-121bcd5adc5b653ccc59be6ecac2b72ed29397ee.tar.xz
craftbukkit-121bcd5adc5b653ccc59be6ecac2b72ed29397ee.zip
Added the ability to set the quit message
Diffstat (limited to 'src/main/java/net/minecraft/server/NetServerHandler.java')
-rw-r--r--src/main/java/net/minecraft/server/NetServerHandler.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java
index 43a99ab7..d60d4b49 100644
--- a/src/main/java/net/minecraft/server/NetServerHandler.java
+++ b/src/main/java/net/minecraft/server/NetServerHandler.java
@@ -500,8 +500,10 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
// CraftBukkit start -- rarely it would send a disconnect line twice
if (!this.c) {
a.info(this.e.name + " lost connection: " + s);
- this.d.f.a((Packet) (new Packet3Chat("\u00A7e" + this.e.name + " left the game.")));
- this.d.f.c(this.e);
+ String quitMessage = this.d.f.c(this.e);
+ if (quitMessage != null) {
+ this.d.f.a((Packet) (new Packet3Chat(quitMessage)));
+ }
}
// CraftBukkit end
this.c = true;