From 894275b8c4037156964d73812493ecee431f8391 Mon Sep 17 00:00:00 2001 From: Carbuino <19510288+Carbuino@users.noreply.github.com> Date: Tue, 24 Nov 2020 09:14:02 -0700 Subject: [PATCH] Update UpstreamPacketHandler.java (#1570) Changed the logging in message to display in the Action Bar instead of spamming the chat. --- .../geysermc/connector/network/UpstreamPacketHandler.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/connector/src/main/java/org/geysermc/connector/network/UpstreamPacketHandler.java b/connector/src/main/java/org/geysermc/connector/network/UpstreamPacketHandler.java index 3c4dc821f..f4e3ca214 100644 --- a/connector/src/main/java/org/geysermc/connector/network/UpstreamPacketHandler.java +++ b/connector/src/main/java/org/geysermc/connector/network/UpstreamPacketHandler.java @@ -187,7 +187,13 @@ public class UpstreamPacketHandler extends LoggingPacketHandler { @Override public boolean handle(MovePlayerPacket packet) { if (session.isLoggingIn()) { - session.sendMessage(LanguageUtils.getPlayerLocaleString("geyser.auth.login.wait", session.getLocale())); + SetTitlePacket titlePacket = new SetTitlePacket(); + titlePacket.setType(SetTitlePacket.Type.ACTIONBAR); + titlePacket.setText(LanguageUtils.getPlayerLocaleString("geyser.auth.login.wait", session.getLocale())); + titlePacket.setFadeInTime(0); + titlePacket.setFadeOutTime(1); + titlePacket.setStayTime(2); + session.sendUpstreamPacket(titlePacket); } return translateAndDefault(packet);