diff options
author | Jake King <imjake9@gmail.com> | 2012-06-12 23:44:02 -0700 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2012-06-13 22:21:40 -0500 |
commit | f58e514192f0b0d112dd58789a6533978c111c8d (patch) | |
tree | 16a8389a0d8644803feb7db3ed7055d3ebd9821f /src/main/java | |
parent | 01fe76733f869c4f2ff6681003e31960955a39ca (diff) | |
download | craftbukkit-f58e514192f0b0d112dd58789a6533978c111c8d.tar craftbukkit-f58e514192f0b0d112dd58789a6533978c111c8d.tar.gz craftbukkit-f58e514192f0b0d112dd58789a6533978c111c8d.tar.lz craftbukkit-f58e514192f0b0d112dd58789a6533978c111c8d.tar.xz craftbukkit-f58e514192f0b0d112dd58789a6533978c111c8d.zip |
Don't send kick message if the message is empty. Fixes BUKKIT-1789
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/net/minecraft/server/NetServerHandler.java | 2 |
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); |