3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 20:40:08 +01:00

Don't send kick message if the message is empty. Fixes BUKKIT-1789

Dieser Commit ist enthalten in:
Jake King 2012-06-12 23:44:02 -07:00 committet von Travis Watkins
Ursprung 01fe76733f
Commit f58e514192

Datei anzeigen

@ -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);