Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-07 00:30:15 +01:00
Update UpstreamPacketHandler.java
Changed the logging in message to display in the Action Bar instead of spamming the chat.
Dieser Commit ist enthalten in:
Ursprung
4297215420
Commit
56bdfd2c57
@ -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);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren