mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 04:56:50 +01:00
Don't send kick message if the message is empty. Fixes BUKKIT-1789
This commit is contained in:
parent
01fe76733f
commit
f58e514192
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue