summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/net/minecraft/server/NetServerHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java
index 157a6aad..830212c6 100644
--- a/src/main/java/net/minecraft/server/NetServerHandler.java
+++ b/src/main/java/net/minecraft/server/NetServerHandler.java
@@ -150,7 +150,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
// CraftBukkit start
leaveMessage = event.getLeaveMessage();
- if (leaveMessage != null) {
+ if (leaveMessage != null && leaveMessage.length() > 0) {
this.minecraftServer.serverConfigurationManager.sendAll(new Packet3Chat(leaveMessage));
}
getPlayer().disconnect(s);