From 56bdfd2c578d95c91d7fc3c4b6c3451487b372d5 Mon Sep 17 00:00:00 2001 From: Carbuino <19510288+Carbuino@users.noreply.github.com> Date: Fri, 20 Nov 2020 02:22:24 -0700 Subject: [PATCH] Update UpstreamPacketHandler.java 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);